"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8377],{86108:(e,t,n)=>{n.r(t),n.d(t,{AddonManagerProvider:()=>xh,AggregationFunction:()=>uI,AlignCenter:()=>xN,AlignLeft:()=>xW,AlignRight:()=>xK,Annotation:()=>pS,AnnotationConfig:()=>pk,AnnotationType:()=>pP,Annotations:()=>pL,AppearanceConfig:()=>dx,AppliedBrandKit:()=>cW,ArrowAnnotation:()=>px,ArrowAnnotationAttributes:()=>py,ArrowAnnotationConfig:()=>pb,ArrowDownIcon:()=>xz,ArrowDuoToneIcon:()=>CR,ArrowLeftIcon:()=>xH,ArrowLineStyle:()=>pm,ArrowRightIcon:()=>xV,ArrowSwapIcon:()=>xF,ArrowThickness:()=>pf,ArrowUpIcon:()=>xE,ArrowheadStyle:()=>pg,AverageDuoToneIcon:()=>CI,AverageLineIcon:()=>CM,AxesIcon:()=>CP,AxisLabelsMode:()=>ct,BAR_VIZ_TYPES:()=>uJ,BASE_FONT_SIZE:()=>sX,BarChartAltIcon:()=>Ck,BaseEditorContainer:()=>kw,BaseEditorContent:()=>ki,BasicFilterConfig:()=>uY,BasicFilterOperator:()=>uB,BasicFilterValue:()=>uR,BinIcon:()=>xP,BlockType:()=>u,BoldIcon:()=>xB,BorderStyleName:()=>dh,BoxIcon:()=>CS,BrandKitTheme:()=>c8,BrushIcon:()=>CH,Button:()=>vK,CHART_PLOT_ID:()=>Ls,COLUMN_VIZ_TYPES:()=>uq,CalendarIcon:()=>Ci,CanvasCssVariables:()=>jM,Caption:()=>mM,CaptionEditor:()=>kR,CaptionEditorControlled:()=>kW,CaptionEditorControlledProvider:()=>kU,CaretDownIcon:()=>x0,CaretLeftIcon:()=>Cm,CaretRightIcon:()=>Cy,CaretUpIcon:()=>x2,Chart:()=>IX,ChartBorderColor:()=>dy,ChartBorderStroke:()=>df,ChartBorderStrokeWidth:()=>dg,ChartBorderStyle:()=>db,ChartBorderType:()=>dm,ChartBrandKitConfig:()=>cU,ChartInfoProvider:()=>PH,ChartTextScale:()=>dr,ChartThemePalette:()=>dt,ChartThemePreset:()=>dn,ChartTitleEditor:()=>S$,CheckIcon:()=>xU,ChronologicalDateManager:()=>uh,ClockIcon:()=>Cr,ColorDropdown:()=>j2,ColorInput:()=>jN,ColorPaletteIcon:()=>jD,ColorSelector:()=>wN,ComboPlotAxisCount:()=>cn,ComboPlotType:()=>u2,ComparisonFilterOperator:()=>uV,Container:()=>mS,Content:()=>mE,CrossAxisPropertyMapping:()=>ca,CrossAxisShape:()=>cl,CrossIcon:()=>x5,CurrencyConfig:()=>cd,CurrencyDollarIcon:()=>Co,CurrencyEuroIcon:()=>Cl,CurrencyIso:()=>gk,CurrencyPoundIcon:()=>Ca,CurveType:()=>u0,CustomColor:()=>pz,CustomPalette:()=>pE,CustomPaletteCatalog:()=>pH,CustomPaletteTheme:()=>de,CustomPowerUp:()=>u3,CustomTheme:()=>c6,DEFAULT_AREA_STACKED_CHART:()=>hu,DEFAULT_BAR_CHART:()=>hy,DEFAULT_BAR_CHART_100_STACKED:()=>hx,DEFAULT_BAR_CHART_STACKED:()=>hb,DEFAULT_BUBBLE_CHART:()=>hd,DEFAULT_CHART_SIZE:()=>cI,DEFAULT_COLUMN_CHART:()=>hg,DEFAULT_COLUMN_CHART_100_STACKED:()=>hm,DEFAULT_COLUMN_CHART_STACKED:()=>hf,DEFAULT_COMBO_CHART_GROUPED_BARS:()=>hv,DEFAULT_DONUT_CHART:()=>ha,DEFAULT_FUNNEL_CHART:()=>hC,DEFAULT_HEATMAP:()=>hw,DEFAULT_LABEL_FORMATTER:()=>up,DEFAULT_LINE_CHART:()=>hs,DEFAULT_LOCALE:()=>fJ,DEFAULT_MEKKO_CHART:()=>hp,DEFAULT_PIE_CHART:()=>hl,DEFAULT_SCATTER_CHART:()=>hc,DEFAULT_SPRING_TRANSITION:()=>fq,DEFAULT_TABLE:()=>hk,DEFAULT_TWEEN_TRANSITION:()=>f$,DEFAULT_VIZ_LOCALE:()=>u8,DEFAULT_VIZ_PALETTE:()=>yt,DEFAULT_WATERFALL_CHART:()=>hh,DataType:()=>gP,DataTypeConfig:()=>cf,DataView:()=>u_,DataViewProperty:()=>uW,DatasetConfig:()=>cC,DateConfig:()=>ch,DateDataType:()=>cp,DecimalPlaces:()=>pO,DefaultChartFont:()=>ds,DefaultHighlightStyle:()=>dl,DescendantContext:()=>j3,DescendantProvider:()=>j9,DifferenceArrowAnnotation:()=>pw,DifferenceArrowAnnotationAttributes:()=>pj,DifferenceArrowAnnotationConfig:()=>pA,DifferenceArrowSize:()=>pv,DifferenceArrowType:()=>pC,DifferenceArrowsDuoToneIcon:()=>CY,EMPTY_CHART:()=>ho,ErrorSeverity:()=>gS,FORMATTED_NULL_VALUE:()=>uc,FORMATTING_NOT_AVAILABLE:()=>ud,FillType:()=>cV,FilterConfig:()=>uU,FontFamily:()=>du,FontFinelinerIcon:()=>x8,FontFreshIcon:()=>x7,FontHandwrittenIcon:()=>x6,FontListSchema:()=>dc,FontModernIcon:()=>x9,FontTechnicalIcon:()=>x4,FontTimelessIcon:()=>x3,FontsProvider:()=>mi,Footer:()=>mV,GRAPHY_UNKNOWN_ERROR_CODE:()=>dS,GRAPHY_VIZ_COLORS:()=>gi,GoalDuoToneIcon:()=>CT,GoogleSlidesIcon:()=>Cs,GrabHandleIcon:()=>xI,Graph:()=>Vf,GraphFont:()=>dp,GraphFontPreset:()=>da,GraphProvider:()=>EE,GraphTheme:()=>ym,GraphThemeAnnotationColorIds:()=>yf,GraphThemeCanvasColor:()=>yp,GraphThemeColorScheme:()=>yg,GraphThemeOverrides:()=>yy,GraphThemeValues:()=>yh,GraphTitle:()=>Hg,GraphyChartFontList:()=>dA,GraphyDefaultFontList:()=>dj,GraphyEditorFontList:()=>dw,GraphyError:()=>dL,GraphyGradientBorderStyle:()=>cZ,GraphyPalette:()=>c_,GraphyPresetFontFamilies:()=>dv,GraphySolidBorderStyle:()=>cX,GraphyVizColor:()=>cK,GridLinesIcon:()=>Cx,GroupByConfig:()=>uN,HashIcon:()=>Ct,Heading:()=>mH,HeadlineMetric:()=>u7,HeadlineMetricComparisonValue:()=>u9,HeadlineMetricSize:()=>u4,HighlightAnnotation:()=>pc,HighlightAnnotationConfig:()=>pu,HighlightDuoToneIcon:()=>CG,HighlightIcon:()=>CB,HighlightStyle:()=>di,HighlightType:()=>ps,Hint:()=>jh,InfoIcon:()=>xJ,Input:()=>wv,InputWithLabel:()=>wA,InstagramIcon:()=>Cu,InvisibleIcon:()=>xO,ItalicIcon:()=>xR,Item:()=>mz,JSONContent:()=>d4,JumboLayout:()=>mK,LEGEND_SYMBOL_SIZE:()=>ul,LIGHTNESS_CONFIG:()=>gt,Label:()=>wj,LabelIcon:()=>Cj,LandscapeIcon:()=>Cc,LeanEditor:()=>SM,LeanEditorProvider:()=>SL,LegendPosition:()=>ce,LegendSymbol:()=>s6,LineChartAltIcon:()=>CC,LineChartSmoothIcon:()=>Cv,LineThicknessIcon:()=>CA,LineType:()=>cH,LinkIcon:()=>xG,LinkedInIcon:()=>Cd,MainAxisPropertyMapping:()=>cs,Menu:()=>Al,MenuAppearanceProvider:()=>Ae,MenuGroup:()=>Au,MenuHeader:()=>AS,MenuHeaderButton:()=>AO,MenuHeaderSkeleton:()=>AW,MenuItem:()=>AZ,MenuItemDivider:()=>AX,MenuItemSkeleton:()=>A_,MenuSelect:()=>A9,MinusIcon:()=>xD,MonoPalette:()=>c0,MonoThemePreset:()=>c5,MoonIcon:()=>CF,NeonPalette:()=>c3,NeonThemePreset:()=>c9,NumberAbbreviation:()=>pT,NumberFormat:()=>pD,NumericFilterOperator:()=>uE,OtherDataTypeConfig:()=>cg,PASTEL_VIZ_COLORS:()=>go,PIE_ENTRY_TRANSITION:()=>f1,PIE_VIZ_TYPES:()=>u1,POINT_VIZ_TYPES:()=>u$,PaletteIcon:()=>Cz,PastelPalette:()=>c$,PastelSolidBorderStyle:()=>cq,PastelVizColor:()=>cJ,PercentIcon:()=>Cn,PieChart:()=>I0,PieTotalPosition:()=>cr,PlusIcon:()=>x$,PointIcon:()=>Cw,Popover:()=>jb,Popper:()=>jf,Portal:()=>my,PortalProvider:()=>ma,PortalThemeProvider:()=>mf,PortraitIcon:()=>Cp,PresetPowerUp:()=>u5,Property:()=>cb,PropertyMapping:()=>cu,RawData:()=>d7,RawDataCell:()=>d5,RawDataRow:()=>d3,ReadonlyTextAnnotationRenderer:()=>SJ,RefreshIcon:()=>xq,ReportEditor:()=>Sr,ReportEditorContext:()=>P0,ReportEditorProvider:()=>Se,ResolveCssColorContext:()=>xZ,RocketIcon:()=>CL,RollingDateFilter:()=>cx,RollingDateFilterConfig:()=>uG,RollingDateFilterOperator:()=>uF,Row:()=>Av,RowButton:()=>Aj,RowIcon:()=>AA,RowInput:()=>AT,RowItem:()=>Aw,RowLabel:()=>AD,RowTitle:()=>AU,RulerIcon:()=>Cf,SERIES_CONFIG_KEYS:()=>gf,SOURCE_PARAGRAPH_MATCH:()=>k_,Select:()=>wh,SelectControl:()=>wp,SeriesColorDot:()=>wP,SeriesConfig:()=>cF,SeriesConfigKeys:()=>cR,SeriesConfigMap:()=>cB,ShapeAnnotation:()=>pn,ShapeAnnotationConfig:()=>pt,ShapeAnnotationType:()=>pe,SkeletonRowLabel:()=>AB,Slider:()=>jA,SortByConfig:()=>uZ,SortByDirection:()=>uK,SortedBarsIcon:()=>Cb,SpinnerIcon:()=>xM,SquareDuoToneIcon:()=>CU,StickerAnnotation:()=>po,StickerAnnotationConfig:()=>pi,StickerAnnotationId:()=>pr,StringFilterOperator:()=>uH,StyledPortalContainer:()=>mm,StylesReset:()=>mb,SummaryEditor:()=>Sd,SunIcon:()=>CV,SwatchbookIcon:()=>CE,TABLE_PLOT_ID:()=>I7,TEXT_NODE_CLASS_NAME:()=>kl,TRANSITION_DURATION:()=>sB,TeamBrandKit:()=>cY,TeamBrandKits:()=>cG,TextAnnotation:()=>ph,TextAnnotationBackgroundColorStyle:()=>pd,TextAnnotationConfig:()=>pp,TextAnnotationEditor:()=>S_,TextColorIcon:()=>x_,TextDuoToneIcon:()=>CW,TextIcon:()=>Ce,TextStyle:()=>dd,ThemeName:()=>cN,ThemeProvider:()=>mg,ThicknessIcon:()=>xQ,TicksType:()=>a,TiktokIcon:()=>Ch,TimeUnit:()=>uz,Tooltip:()=>jd,TooltipAnnotation:()=>pa,TooltipAnnotationConfig:()=>pl,TreatEmptyValues:()=>co,TrendDuoToneIcon:()=>CD,TrendIcon:()=>CO,TrendTag:()=>uu,TrendType:()=>ci,UnderlineIcon:()=>xY,UndoIcon:()=>x1,VIZ_TYPE_LIMITS:()=>cz,VisibleIcon:()=>xT,VisualisationConfig:()=>cc,VisualizationType:()=>uQ,VizColor:()=>cE,VizLocale:()=>u6,VizTable:()=>zl,WATERFALL_SERIES_CONFIG_KEYS:()=>gm,WATERFALL_TOTAL_ID:()=>dO,WaterfallColor:()=>c4,Weekday:()=>uX,XIcon:()=>Cg,addonZIndices:()=>mt,applyNumberAbbreviation:()=>ux,applyTintAdjustment:()=>gn,breakpoints:()=>sQ,buildChartCaptionDocument:()=>S8,buildChartTitleDocument:()=>pN,calculateTrend:()=>fQ,castToBoolean:()=>fs,castToDate:()=>fa,castToNumber:()=>fl,castToString:()=>fo,checkeredBackground:()=>ye,color:()=>uv,colorVariableName:()=>uC,columnIndexToPropertyKey:()=>uO,contentSpecToSupportedContentSpec:()=>ST,createEmptyProperty:()=>uT,createGradientFromColor:()=>gr,createNonNullableContextHook:()=>uD,darkModeOnly:()=>uL,darkenCss:()=>uA,dataTypeToRollingFilterOptions:()=>cT,decodeValue:()=>yj,default100StackedBarConfig:()=>p2,defaultAnnotations:()=>Lv,defaultAppearanceConfig:()=>Lj,defaultBubbleChartConfig:()=>hn,defaultCharts:()=>hP,defaultComboChartConfig:()=>p6,defaultData:()=>pK,defaultDatasetConfig:()=>pZ,defaultDonutChartConfig:()=>p9,defaultFunnelChartConfig:()=>p4,defaultGroupedBarConfig:()=>p1,defaultGroupedColumnConfig:()=>p5,defaultHeatmapConfig:()=>p8,defaultLineChartConfig:()=>p3,defaultNumberFormat:()=>LA,defaultPieChartConfig:()=>p7,defaultScatterChartConfig:()=>ht,defaultStackedBarConfig:()=>p0,defaultTableConfig:()=>he,defaultVisualisationConfig:()=>hi,defaultWaterfallChartConfig:()=>hr,desaturateCss:()=>uP,device:()=>yd,elevation:()=>sE,emptyChartTitleContent:()=>S7,emptyDocument:()=>kN,emptyReportContent:()=>Si,estimateDataPointCount:()=>hM,findCaptionSource:()=>kJ,fontFamilies:()=>sU,fontSizes:()=>sW,fontWeights:()=>su,formatBoolean:()=>fu,formatBooleanTickLabel:()=>fd,formatBooleanValue:()=>fc,formatCurrencyTickLabel:()=>fy,formatCurrencyValue:()=>fx,formatDateTickLabel:()=>fB,formatDateValue:()=>fj,formatDatetimeValue:()=>fv,formatDayMonthTickLabel:()=>fR,formatDayMonthValue:()=>fA,formatDecimalTickLabel:()=>fm,formatDecimalValue:()=>fw,formatDifferenceLabel:()=>fX,formatDuration:()=>fL,formatDurationTickLabel:()=>fY,formatDurationValue:()=>fM,formatIntegerTickLabel:()=>fG,formatIntegerValue:()=>fO,formatMonthTickLabel:()=>fU,formatMonthValue:()=>fT,formatMonthYearValue:()=>fD,formatPercentageTickLabel:()=>fW,formatPercentageValue:()=>fI,formatQuarterValue:()=>fz,formatTextTickLabel:()=>fN,formatTextValue:()=>fE,formatTooltipDateValue:()=>fK,formatTooltipDatetimeValue:()=>fZ,formatTooltipValue:()=>zs,formatWeeklyDateRangeValue:()=>fH,formatWeeklyDateRangeWithYearValue:()=>fV,formatYearValue:()=>fF,generateDataPointId:()=>dT,generateMenuItemId:()=>j4,generateMonoPalette:()=>yl,getBaseExtensions:()=>kM,getCaptionAsPlainText:()=>kX,getChartBorderStyles:()=>gj,getComputedDataView:()=>P1,getCustomBorderStyle:()=>gx,getDataTypeCategory:()=>cP,getDateFormatMatch:()=>d_,getDefaultColorForSeriesConfigKey:()=>gb,getDefaultIntl:()=>f_,getDefaultSwatchStyles:()=>dI,getEmptyDocumentPerContentSpec:()=>SI,getGraphBackgroundColor:()=>ET,getLabelForWaterfallSeriesConfigKey:()=>gC,getPaletteSeriesColor:()=>ww,getPresetPalette:()=>yr,getPropertiesWithInferredTypes:()=>PX,getResolvedVisualisationConfig:()=>p$,getScrollParent:()=>dz,getSupportedDateFormats:()=>dY,getSupportedWeeklyDateRangeFormats:()=>dG,getVersion:()=>e$.HF,getVizPalette:()=>yn,getWeeklyDateRangeFormatMatch:()=>dq,gradientBorder:()=>sH,graphyDarkTheme:()=>h4,graphyLightTheme:()=>ge,hasEmptyTextNode:()=>Le,hasOwnProperty:()=>d$,hasOwnStringProperty:()=>d1,highlightEditorAddon:()=>MG,inferDataType:()=>pG,isAnnotationWithDataPoint:()=>ug,isBooleanDataType:()=>cj,isCategoricalSingleAxisChart:()=>hV,isCellEmpty:()=>pU,isChartTitleEmpty:()=>S9,isChartTooExpensive:()=>hL,isComputedPieChartConfig:()=>hH,isComputedXYChartConfig:()=>hE,isCurrencyDataTypeConfig:()=>cy,isDatasetEmpty:()=>pW,isDatasetPristine:()=>hS,isDateDataType:()=>cA,isDateDataTypeConfig:()=>cm,isDateDataTypeWithoutYear:()=>cw,isDifferenceArrowAnnotation:()=>um,isEmptyDocument:()=>kZ,isGraphyError:()=>dM,isHighlightAnnotation:()=>uf,isNonEmptyArray:()=>pI,isNonNullValue:()=>pM,isNumericDataType:()=>ck,isPartialComputedPieChartConfig:()=>hz,isPartialComputedXYChartConfig:()=>hI,isPieAestheticMappings:()=>d2,isRowEmpty:()=>hO,isRowNotEmpty:()=>hT,isTextDataType:()=>cv,isTooltipAnnotation:()=>uy,isTouchDevice:()=>hD,isValidReportContent:()=>P8,isValidRollingFilterForDataType:()=>cD,isValidTimeUnitForDataType:()=>hB,isWithinViewport:()=>hR,isXYAestheticMappings:()=>d0,lightModeOnly:()=>uM,lightenCss:()=>uw,lineHeights:()=>sN,migrateFromLegacyGraphConfig:()=>Vy,mixCss:()=>uk,modifyChartTitleDocument:()=>Lo,parseChartCaptionDocument:()=>Li,parseChartTitleDocument:()=>Ln,parseDataPointId:()=>dD,pointOnCircle:()=>hY,radii:()=>sz,rawDataToChartData:()=>Lx,remMultiplier:()=>sF,remToPx:()=>hG,remapAnnotations:()=>hU,removeSourceFromCaption:()=>kQ,resetFontSize:()=>hW,resolveCssColor:()=>Hr,resolveFontFamily:()=>dk,sendableSteps:()=>e$._X,skeleton:()=>hK,space:()=>h_,spaceBaseRem:()=>sV,spaceToPx:()=>hX,stickers:()=>TT,stringToUTCDate:()=>Lc,subpixelRound:()=>hQ,summaryEditorExtensionStyles:()=>Ss,supportsHeadlineMetrics:()=>Lu,svgSkeleton:()=>hZ,textEditorContentBuilder:()=>La,themeToVariables:()=>uS,timeUnitToDataType:()=>hJ,titleDocumentToTitle:()=>Lr,toPlainText:()=>Lt,transformToTextStyle:()=>dP,transitions:()=>sR,transparentizeCss:()=>uj,transposeData:()=>h1,trimEmptyProperties:()=>hq,trimEmptyRows:()=>h$,truncate:()=>h0,typography:()=>m8,typographyFontWeights:()=>sK,typographyTextDecoration:()=>sZ,useAddonManager:()=>xp,useBaseEditor:()=>kL,useBreakpoint:()=>h3,useCaptionEditorControlled:()=>kG,useChartBorderStyles:()=>gW,useChartInfo:()=>PE,useComponentWillUnmount:()=>gK,useDebouncedCallback:()=>gZ,useDescendant:()=>AL,useDescendants:()=>j7,useDrag:()=>gX,useEditable:()=>gq,useFonts:()=>mr,useGetChartTitleEditor:()=>S3,useGradientVariant:()=>g0,useGraphState:()=>gG,useGraphStateContext:()=>gY,useHasFocus:()=>g_,useHasMouseOver:()=>g2,useIsInEmbed:()=>g3,useIsXGoalSupported:()=>g9,useLeanEditor:()=>SS,useMenuAppearance:()=>j8,useMenuItem:()=>AM,useMergeRefs:()=>g4,useOnClickAway:()=>g6,useOptionalGraphState:()=>gU,useParentTheme:()=>mp,usePrevious:()=>g8,useReportEditor:()=>P2,useResizeObserver:()=>ft,useResponsiveStyles:()=>E3,useSafeGraphLayoutContext:()=>Eq,useSafePortalContext:()=>ml,useSeriesColorsOptions:()=>Hi,useStatefulRef:()=>gN,useTheme:()=>mh,useTooltip:()=>mF,useTooltipPointerCoords:()=>mZ,useUpdateGraphConfig:()=>EM,vizTypography:()=>sI,zIndices:()=>s_});var r,i,o,l,a,s,u,c,d=n(85966),p=n(34774),h=n(6029),g=n(23611),f=n(53120),m=n(5392),y=n(20880),b=n(47110),x=n(89015),C=n(77120),v=n(51136),j=n(97845),A=n(55821),w=n(72265),k=n(17406),P=n(51692),S=n(54440),L=n(84114),M=n(55729),O=n(26043),T=n(25690),D=n(57513),I=n(93892),z=n(55049),E=n(39378),H=n(65982),V=n(31812),F=n(43938),B=n(947),R=n(56760),Y=n(17642),G=n(63418),U=n(65230),W=n(66082),N=n(87409),K=n(26613),Z=n(68065),X=n(69604),_=n(45644),Q=n(93291),J=n(86640),q=n(41777),$=n(43740),ee=n(16930),et=n(15905),en=n(10095),er=n(29123),ei=n(48564),eo=n(75570),el=n(17724),ea=n(91722),es=n(11692),eu=n(7749),ec=n(7972),ed=n(89581),ep=n(34758),eh=n(98356),eg=n(6237),ef=n(73881),em=n(45863),ey=n(75437),eb=n(17318),ex=n(12323),eC=n(76787),ev=n(3839),ej=n(34818),eA=n(51192),ew=n(9585),ek=n(85294),eP=n(85279),eS=n(7803),eL=n(25960),eM=n(98720),eO=n(77116),eT=n(30174),eD=n(70649),eI=n(37243),ez=n(51589),eE=n(82318),eH=n(55153),eV=n(8476),eF=n(83902),eB=n(99696),eR=n(41885),eY=n(70375),eG=n(91929),eU=n(91892),eW=n(35658),eN=n(58497),eK=n(30777),eZ=n(30669),eX=n(97122),e_=n(94289),eQ=n(18556),eJ=n(74467),eq=n(3121),e$=n(24839),e1=n(88039),e0=n(25187),e2=n(64952),e5=n(73715),e3=n(36523),e7=n(97109),e9=n(28514),e4=n(34302),e6=n(8272),e8=n(69694),te=n(94558),tt=n(66804),tn=n(43522),tr=n(31989),ti=n(78711),to=n(9667);function tl(){let e=(0,d._)(["\n font-size: calc(1.2em * var(--typography-scale));\n font-weight: ",";\n line-height: 1.5;\n"]);return tl=function(){return e},e}function ta(){let e=(0,d._)(["\n font-size: calc(1.2em * var(--typography-scale));\n font-weight: ",";\n"]);return ta=function(){return e},e}function ts(){let e=(0,d._)(["\n font-family: inherit;\n font-size: calc(1em * var(--typography-scale));\n font-weight: ",";\n"]);return ts=function(){return e},e}function tu(){let e=(0,d._)(["\n font-size: calc(1em * var(--typography-scale));\n font-weight: ",";\n"]);return tu=function(){return e},e}function tc(){let e=(0,d._)(["\n font-family: inherit;\n font-size: 1.1em;\n font-weight: ",";\n"]);return tc=function(){return e},e}function td(){let e=(0,d._)(["\n font-size: calc(1.4em * var(--typography-scale));\n line-height: 2;\n font-weight: ",";\n"]);return td=function(){return e},e}function tp(){let e=(0,d._)(["\n font-size: calc(1.2em * var(--typography-scale));\n line-height: 1.3;\n font-weight: ",";\n"]);return tp=function(){return e},e}function th(){let e=(0,d._)(["\n font-size: calc(1.1em * var(--typography-scale));\n font-weight: ",";\n line-height: 1;\n"]);return th=function(){return e},e}function tg(){let e=(0,d._)(["\n font-size: calc(1.1em * var(--typography-scale));\n font-weight: ",";\n line-height: 1;\n"]);return tg=function(){return e},e}function tf(){let e=(0,d._)(["\n font-size: calc(1.2em * var(--typography-scale));\n font-weight: ",";\n"]);return tf=function(){return e},e}function tm(){let e=(0,d._)(["\n font-size: calc(1.6em * var(--typography-scale));\n font-weight: ",";\n"]);return tm=function(){return e},e}function ty(){let e=(0,d._)(["\n font-size: calc(2em * var(--typography-scale));\n font-weight: ",";\n"]);return ty=function(){return e},e}function tb(){let e=(0,d._)(["\n font-size: calc(1em * var(--typography-scale));\n font-weight: ",";\n"]);return tb=function(){return e},e}function tx(){let e=(0,d._)(["\n font-size: 1.2em;\n line-height: 1.6;\n font-weight: ",";\n"]);return tx=function(){return e},e}function tC(){let e=(0,d._)(["\n font-size: 1em;\n line-height: 1.3;\n font-weight: ",";\n"]);return tC=function(){return e},e}function tv(){let e=(0,d._)(["\n font-size: 1.4em;\n line-height: 2;\n font-weight: ",";\n"]);return tv=function(){return e},e}function tj(){let e=(0,d._)(["\n font-size: 1.2em;\n font-weight: ",";\n"]);return tj=function(){return e},e}function tA(){let e=(0,d._)(["\n font-size: 1.2em;\n font-weight: ",";\n line-height: 1;\n"]);return tA=function(){return e},e}function tw(){let e=(0,d._)(["\n font-size: 2.2em;\n font-weight: ",";\n line-height: 1;\n"]);return tw=function(){return e},e}function tk(){let e=(0,d._)(["\n font-size: 1.2em;\n font-weight: ",";\n line-height: 1;\n"]);return tk=function(){return e},e}function tP(){let e=(0,d._)(["\n font-size: 1.2em;\n"]);return tP=function(){return e},e}function tS(){let e=(0,d._)(["\n font-size: 1.2em;\n"]);return tS=function(){return e},e}function tL(){let e=(0,d._)(["\n font-size: 1em;\n font-weight: ",";\n line-height: 1;\n"]);return tL=function(){return e},e}function tM(){let e=(0,d._)(["\n border: ","px solid transparent;\n border-radius: ",";\n background: "," border-box;\n mask:\n linear-gradient(#fff 0 0) padding-box,\n linear-gradient(#fff 0 0);\n -webkit-mask-composite: xor;\n mask-composite: exclude;\n\n // Fix for Safari bug: gradient border disappears when animating a container that scrolls.\n transform: translateZ(0);\n"]);return tM=function(){return e},e}function tO(){let e=(0,d._)(["\n ","\n color: ",";\n"]);return tO=function(){return e},e}function tT(){let e=(0,d._)(["\n font-size: ",";\n"]);return tT=function(){return e},e}function tD(){let e=(0,d._)(["\n 0% {\n opacity: 0.5;\n }\n\n 50% {\n opacity: 1;\n }\n\n 100% {\n opacity: 0.5;\n }\n"]);return tD=function(){return e},e}function tI(){let e=(0,d._)(["\n background-color: ",";\n animation: "," 1.8s ease-out infinite;\n"]);return tI=function(){return e},e}function tz(){let e=(0,d._)(["\n fill: ",";\n animation: "," 1.8s ease-out infinite;\n"]);return tz=function(){return e},e}function tE(){let e=(0,d._)(["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"]);return tE=function(){return e},e}function tH(){let e=(0,d._)(["\n display: contents;\n @property --typography-scale {\n syntax: '';\n inherits: true;\n initial-value: 1;\n }\n color-scheme: ",";\n ","\n color: ",";\n"]);return tH=function(){return e},e}function tV(){let e=(0,d._)(["\n --typography-scale: 1;\n ","\n "]);return tV=function(){return e},e}function tF(){let e=(0,d._)(["\n ","\n z-index: ",";\n position: ",";\n display: ",";\n"]);return tF=function(){return e},e}function tB(){let e=(0,d._)(["\n ","\n color: ",";\n font-family: var(--typography-chart-font-family);\n\n [role='toolbar'] {\n --typography-scale: 1;\n }\n"]);return tB=function(){return e},e}function tR(){let e=(0,d._)(["\n pointer-events: none;\n position: fixed;\n top: 0;\n left: 0;\n z-index: ",";\n"]);return tR=function(){return e},e}function tY(){let e=(0,d._)(["\n position: relative;\n max-width: calc(40em * var(--typography-scale));\n display: flex;\n zoom: var(--typography-scale);\n\n > * {\n --typography-scale: 1;\n }\n"]);return tY=function(){return e},e}function tG(){let e=(0,d._)(["\n position: relative;\n background: ",";\n box-shadow: 0 0 0 1.5px ",";\n border-radius: 0.6em;\n"]);return tG=function(){return e},e}function tU(){let e=(0,d._)(["\n ","\n ","\n color: ",";\n"]);return tU=function(){return e},e}function tW(){let e=(0,d._)(["\n padding: 1.2em 1.6em;\n border-top: 1px solid rgba(255, 255, 255, 0.08);\n"]);return tW=function(){return e},e}function tN(){let e=(0,d._)(["\n ","\n color: ",";\n"]);return tN=function(){return e},e}function tK(){let e=(0,d._)(["\n ","\n pointer-events: none;\n position: absolute;\n display: flex;\n color: ",";\n"]);return tK=function(){return e},e}function tZ(){let e=(0,d._)(["\n left: 50%;\n top: 0;\n transform: translate(-50%, -100%) scaleY(-1);\n "]);return tZ=function(){return e},e}function tX(){let e=(0,d._)(["\n right: 0;\n top: 50%;\n transform: translate(75%, -50%) rotate(-90deg);\n "]);return tX=function(){return e},e}function t_(){let e=(0,d._)(["\n left: 50%;\n bottom: 0;\n transform: translate(-50%, 100%);\n "]);return t_=function(){return e},e}function tQ(){let e=(0,d._)(["\n left: 0;\n top: 50%;\n transform: translate(-75%, -50%) rotate(90deg);\n "]);return tQ=function(){return e},e}function tJ(){let e=(0,d._)(["\n ","\n"]);return tJ=function(){return e},e}function tq(){let e=(0,d._)(["\n display: flex;\n align-items: baseline;\n flex-wrap: wrap;\n gap: ",";\n color: #bdbacd;\n\n > * {\n ","\n }\n"]);return tq=function(){return e},e}function t$(){let e=(0,d._)(["\n display: flex;\n flex-flow: row;\n gap: ",";\n align-items: center;\n justify-content: space-between;\n\n & + & {\n margin-top: ",";\n }\n"]);return t$=function(){return e},e}function t1(){let e=(0,d._)(["\n flex-shrink: 0;\n"]);return t1=function(){return e},e}function t0(){let e=(0,d._)(["\n ","\n ","\n flex-grow: 1;\n color: ",";\n"]);return t0=function(){return e},e}function t2(){let e=(0,d._)(["\n font-weight: 600;\n color: ",";\n"]);return t2=function(){return e},e}function t5(){let e=(0,d._)(["\n display: flex;\n flex-flow: column;\n min-width: 20em;\n max-width: 30em;\n"]);return t5=function(){return e},e}function t3(){let e=(0,d._)(["\n padding: 1.2em 1.6em 0.8em 1.6em;\n"]);return t3=function(){return e},e}function t7(){let e=(0,d._)(["\n display: flex;\n flex-flow: row;\n gap: ",";\n align-items: center;\n"]);return t7=function(){return e},e}function t9(){let e=(0,d._)(["\n flex-shrink: 0;\n display: flex;\n"]);return t9=function(){return e},e}function t4(){let e=(0,d._)(["\n margin-top: ",";\n"]);return t4=function(){return e},e}function t6(){let e=(0,d._)(["\n ","\n color: ",";\n"]);return t6=function(){return e},e}function t8(){let e=(0,d._)(["\n height: 1em;\n"]);return t8=function(){return e},e}function ne(){let e=(0,d._)(["\n text-decoration: ",";\n "]);return ne=function(){return e},e}function nt(){let e=(0,d._)(["\n font-size: calc("," * var(--typography-scale));\n line-height: ",";\n font-weight: ",";\n ","\n"]);return nt=function(){return e},e}function nn(){let e=(0,d._)(["\n --checkered-background: ",";\n background-image:\n linear-gradient(\n 45deg,\n var(--checkered-background) 25%,\n transparent 25%,\n transparent 75%,\n var(--checkered-background) 75%,\n var(--checkered-background)\n ),\n linear-gradient(\n 45deg,\n var(--checkered-background) 25%,\n transparent 25%,\n transparent 75%,\n var(--checkered-background) 75%,\n var(--checkered-background)\n );\n background-size: ","em ","em;\n background-position:\n 0 0,\n ","em ","em;\n"]);return nn=function(){return e},e}function nr(){let e=(0,d._)(["\n // Disable zooming and horizontal panning on touch devices so that it's easier to interact with tooltips.\n touch-action: pan-y;\n flex-grow: 1;\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n @media print {\n width: 100% !important;\n }\n"]);return nr=function(){return e},e}function ni(){let e=(0,d._)(["\n flex: 0 0 auto;\n display: flex;\n flex-direction: column;\n gap: 0.8em;\n margin-bottom: 1em;\n min-height: 0;\n max-height: 80%;\n overflow-y: auto;\n"]);return ni=function(){return e},e}function no(){let e=(0,d._)(["\n flex: 0 0 auto;\n"]);return no=function(){return e},e}function nl(){let e=(0,d._)(["\n flex: 1;\n min-height: 0;\n position: relative;\n display: flex;\n flex-direction: column;\n\n > * {\n flex-grow: 1;\n }\n"]);return nl=function(){return e},e}function na(){let e=(0,d._)(["\n flex: 0 0 auto;\n"]);return na=function(){return e},e}function ns(){let e=(0,d._)(["\n flex: 0 0 auto;\n"]);return ns=function(){return e},e}function nu(){let e=(0,d._)(["\n position: absolute;\n z-index: ",";\n left: 0;\n top: 0;\n pointer-events: none;\n > * {\n pointer-events: auto;\n }\n"]);return nu=function(){return e},e}function nc(){let e=(0,d._)(["\n --typography-scale: 1;\n font-family: ",";\n position: absolute;\n top: 0;\n left: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n opacity: ",";\n pointer-events: none;\n > * {\n pointer-events: ",";\n }\n"]);return nc=function(){return e},e}function nd(){let e=(0,d._)(["\n width: ",";\n height: ",";\n z-index: ",";\n position: relative;\n"]);return nd=function(){return e},e}function np(){let e=(0,d._)(["\n from {\n opacity: 0;\n transform: translateY(2px);\n }\n to {\n opacity: 1;\n transform: translateY(0);\n }\n"]);return np=function(){return e},e}function nh(){let e=(0,d._)(["\n from {\n opacity: 0;\n transform: translateX(-2px);\n }\n to {\n opacity: 1;\n transform: translateX(0);\n }\n"]);return nh=function(){return e},e}function ng(){let e=(0,d._)(["\n from {\n opacity: 0;\n transform: translateY(-2px);\n }\n to {\n opacity: 1;\n transform: translateY(0);\n }\n"]);return ng=function(){return e},e}function nf(){let e=(0,d._)(["\n from {\n opacity: 0;\n transform: translateX(2px);\n }\n to {\n opacity: 1;\n transform: translateX(0);\n }\n"]);return nf=function(){return e},e}function nm(){let e=(0,d._)(["\n ","\n user-select: none;\n z-index: ",";\n min-width: ",";\n background-color: ",";\n padding: ",";\n box-shadow: ",";\n animation-duration: 400ms;\n animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);\n will-change: transform, opacity;\n border-radius: ",";\n\n &[data-side='top'] {\n animation: "," ",";\n }\n\n &[data-side='right'] {\n animation: "," ",";\n }\n\n &[data-side='bottom'] {\n animation: "," ",";\n }\n\n &[data-side='left'] {\n animation: "," ",";\n }\n"]);return nm=function(){return e},e}function ny(){let e=(0,d._)(["\n flex-shrink: 0;\n color: ",";\n\n .invertedFill {\n "," {\n fill: ",";\n }\n\n "," {\n fill: ",";\n }\n }\n\n .invertedStroke {\n "," {\n stroke: ",";\n }\n\n "," {\n stroke: ",";\n }\n }\n"]);return ny=function(){return e},e}function nb(){let e=(0,d._)(["\n to {\n transform: rotate(360deg);\n }\n"]);return nb=function(){return e},e}function nx(){let e=(0,d._)(["\n animation: "," 0.85s linear infinite;\n animation-fill-mode: none;\n display: inline-flex;\n"]);return nx=function(){return e},e}function nC(){let e=(0,d._)(["\n width: ",";\n height: ",";\n display: flex;\n color: ",";\n outline: 3px solid ",";\n background: ",";\n cursor: pointer;\n align-items: center;\n justify-content: center;\n border-radius: 50%;\n transition: transform 0.25s linear;\n transform: ",";\n filter: drop-shadow(0px 4px 4px rgba(14, 14, 52, 0.08)) drop-shadow(0px 0px 4px rgba(15, 15, 24, 0.12));\n"]);return nC=function(){return e},e}function nv(){let e=(0,d._)(["\n display: flex;\n align-items: center;\n justify-content: center;\n\n transform: ",";\n transition: transform 0.25s linear;\n\n span {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n"]);return nv=function(){return e},e}function nj(){let e=(0,d._)(["\n display: flex;\n flex-direction: column;\n"]);return nj=function(){return e},e}function nA(){let e=(0,d._)(["\n display: flex;\n align-items: center;\n gap: ",";\n padding: ",";\n border-radius: ",";\n cursor: pointer;\n &:hover {\n background-color: ",";\n }\n\n &[data-highlighted] {\n background-color: ",";\n }\n"]);return nA=function(){return e},e}function nw(){let e=(0,d._)(["\n display: flex;\n align-items: center;\n justify-content: center;\n margin-left: auto;\n"]);return nw=function(){return e},e}function nk(){let e=(0,d._)(["\n ","\n white-space: nowrap;\n"]);return nk=function(){return e},e}function nP(){let e=(0,d._)(["\n position: relative;\n display: flex;\n"]);return nP=function(){return e},e}function nS(){let e=(0,d._)(["\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%) rotate(45deg);\n width: 80%;\n height: 2px;\n background-color: ",";\n"]);return nS=function(){return e},e}function nL(){let e=(0,d._)(["\n display: flex;\n flex-direction: column;\n text-transform: capitalize;\n gap: ",";\n"]);return nL=function(){return e},e}function nM(){let e=(0,d._)(["\n ","\n"]);return nM=function(){return e},e}function nO(){let e=(0,d._)(["\n display: flex;\n flex-grow: 0;\n flex-shrink: 0;\n user-select: none;\n pointer-events: none;\n transition: color ",";\n"]);return nO=function(){return e},e}function nT(){let e=(0,d._)(["\n ","\n flex-shrink: 1;\n transition: opacity ",";\n"]);return nT=function(){return e},e}function nD(){let e=(0,d._)(["\n align-items: center;\n bottom: 0;\n display: flex;\n justify-content: center;\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n"]);return nD=function(){return e},e}function nI(){let e=(0,d._)(["\n from {\n background-position: 0% 0%;\n }\n to {\n background-position: -200% 0%;\n }\n"]);return nI=function(){return e},e}function nz(){let e=(0,d._)([""]);return nz=function(){return e},e}function nE(){let e=(0,d._)(["\n position: relative;\n overflow: visible;\n display: inline-block;\n user-select: none;\n width: ",";\n border-radius: ",";\n cursor: ",";\n\n &::after {\n content: '';\n pointer-events: none;\n position: absolute;\n inset: 0;\n ","\n background-size: 200% 100%;\n animation: "," 1s linear infinite;\n animation-play-state: paused;\n transition: all 150ms;\n display: ",";\n }\n\n "," {\n --typography-scale: 1;\n align-items: center;\n background-color: ",";\n border-radius: ",";\n border: solid 1px ",";\n color: ",";\n\n display: inline-flex;\n font-family: inherit;\n text-align: ",";\n justify-content: ",";\n max-width: 100%;\n padding: calc("," - 1px) calc("," - 1px);\n position: relative;\n transition:\n background-color ",",\n border-color ",";\n width: ",";\n opacity: ",";\n }\n\n "," {\n ","\n line-height: ",";\n }\n\n &:hover {\n "," {\n background-color: ",";\n }\n\n "," {\n color: ",";\n }\n\n &:after {\n animation-play-state: running;\n }\n }\n\n [data-input-type='keyboard'] &:focus "," {\n background-color: ",";\n }\n\n "," > span + span {\n margin-left: ",";\n }\n "," > span {\n ","\n }\n\n "," {\n color: ",";\n }\n "]);return nE=function(){return e},e}function nH(){let e=(0,d._)(["\n ","\n\n ","\n"]);return nH=function(){return e},e}function nV(){let e=(0,d._)(["\n ","\n display: flex;\n flex-direction: column;\n gap: ",";\n"]);return nV=function(){return e},e}function nF(){let e=(0,d._)(["\n display: flex;\n align-items: center;\n gap: ",";\n height: ",";\n"]);return nF=function(){return e},e}function nB(){let e=(0,d._)(["\n ","\n color: ",";\n"]);return nB=function(){return e},e}function nR(){let e=(0,d._)(["\n /* The negative margin is used to offset the padding of the button so that the button aligns nicely with the content */\n margin-left: ",";\n height: ",";\n width: ",";\n"]);return nR=function(){return e},e}function nY(){let e=(0,d._)(["\n display: grid;\n grid-template-columns: repeat(4, 1fr);\n"]);return nY=function(){return e},e}function nG(){let e=(0,d._)(["\n display: contents;\n"]);return nG=function(){return e},e}function nU(){let e=(0,d._)(["\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: ",";\n width: 4em;\n aspect-ratio: 1 / 1;\n padding: ",";\n margin: 0;\n border: none;\n background: none;\n cursor: pointer;\n &:hover {\n background: ",";\n }\n"]);return nU=function(){return e},e}function nW(){let e=(0,d._)(["\n opacity: 0.5;\n "]);return nW=function(){return e},e}function nN(){let e=(0,d._)(["\n background: transparent;\n border: none;\n\n ","\n\n &::placeholder {\n color: inherit;\n opacity: 0.5;\n }\n\n &::-webkit-inner-spin-button,\n &::-webkit-outer-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n "]);return nN=function(){return e},e}function nK(){let e=(0,d._)(["\n &,\n &:hover {\n border-color: ",";\n }\n "]);return nK=function(){return e},e}function nZ(){let e=(0,d._)(["\n border: solid 1px ",";\n border-radius: ",";\n background-color: ",";\n\n &:hover {\n border-color: ",";\n }\n\n &:focus-within {\n border-color: ",";\n }\n\n ",";\n "]);return nZ=function(){return e},e}function nX(){let e=(0,d._)(["\n &::placeholder {\n color: ",";\n }\n "]);return nX=function(){return e},e}function n_(){let e=(0,d._)(["\n ","\n color: ",";\n\n ","\n "]);return n_=function(){return e},e}function nQ(){let e=(0,d._)(["\n ","\n display: flex;\n flex-flow: row nowrap;\n"]);return nQ=function(){return e},e}function nJ(){let e=(0,d._)(["\n ","\n ","\n "]);return nJ=function(){return e},e}function nq(){let e=(0,d._)(["\n ","\n ","\n padding: "," ",";\n color: ",";\n width: 100%;\n\n &:focus {\n outline: none;\n }\n"]);return nq=function(){return e},e}function n$(){let e=(0,d._)(["\n padding: ",";\n"]);return n$=function(){return e},e}function n1(){let e=(0,d._)(["\n position: fixed;\n transform: translateY(calc(-100% - ","));\n z-index: ",";\n display: inline-flex;\n padding: ",";\n background: ",";\n border-radius: ",";\n font-family: ",";\n --typography-scale: 1;\n &:before {\n pointer-events: none;\n content: '';\n position: absolute;\n inset: 0;\n ",";\n }\n"]);return n1=function(){return e},e}function n0(){let e=(0,d._)(["\n width: 1px;\n margin: "," ",";\n background-color: ",";\n\n & + & {\n display: none;\n }\n"]);return n0=function(){return e},e}function n2(){let e=(0,d._)(["\n from {\n opacity: 0;\n transform: scale(0.95);\n }\n to {\n opacity: 1;\n transform: scale(1);\n }\n"]);return n2=function(){return e},e}function n5(){let e=(0,d._)(["\n animation: "," ",";\n "]);return n5=function(){return e},e}function n3(){let e=(0,d._)(["\n user-select: none;\n background-color: ",";\n box-shadow: ",";\n border-radius: ",";\n padding: "," ",";\n max-width: ","em;\n color: ",";\n z-index: ",";\n\n ","\n "]);return n3=function(){return e},e}function n7(){let e=(0,d._)(["\n ","\n"]);return n7=function(){return e},e}function n9(){let e=(0,d._)(["\n fill: ",";\n"]);return n9=function(){return e},e}function n4(){let e=(0,d._)(["\n ","\n white-space: pre-wrap;\n strong {\n font-weight: ",";\n }\n"]);return n4=function(){return e},e}function n6(){let e=(0,d._)(["\n ","\n white-space: pre-wrap;\n"]);return n6=function(){return e},e}function n8(){let e=(0,d._)(["\n z-index: ",";\n"]);return n8=function(){return e},e}function re(){let e=(0,d._)(["\n ","\n"]);return re=function(){return e},e}function rt(){let e=(0,d._)(["\n background-color: ",";\n border-radius: ",";\n box-shadow: ",";\n border: 1px solid ",";\n overflow: hidden;\n\n &::before {\n pointer-events: none;\n content: '';\n position: absolute;\n inset: 0;\n border-radius: inherit;\n ",";\n }\n "]);return rt=function(){return e},e}function rn(){let e=(0,d._)(["\n position: relative;\n ","\n"]);return rn=function(){return e},e}function rr(){let e=(0,d._)([""]);return rr=function(){return e},e}function ri(){let e=(0,d._)(["\n position: relative;\n display: flex;\n align-items: center;\n user-select: none;\n touch-action: none;\n width: 100%;\n height: 1.4em;\n"]);return ri=function(){return e},e}function ro(){let e=(0,d._)(["\n background-color: ",";\n position: relative;\n flex-grow: 1;\n border-radius: 9999px;\n height: 2px;\n"]);return ro=function(){return e},e}function rl(){let e=(0,d._)(["\n position: absolute;\n background-color: ",";\n border-radius: 9999px;\n height: 100%;\n"]);return rl=function(){return e},e}function ra(){let e=(0,d._)(["\n display: block;\n width: 1.4em;\n height: 1.4em;\n background-color: ",";\n box-shadow: ",";\n border-radius: 50%;\n cursor: pointer;\n &:hover {\n transform: scale(1.1);\n }\n"]);return ra=function(){return e},e}function rs(){let e=(0,d._)(["\n display: contents;\n ","\n"]);return rs=function(){return e},e}function ru(){let e=(0,d._)(["\n overflow: visible;\n fill: none;\n & circle {\n stroke: ",";\n }\n"]);return ru=function(){return e},e}function rc(){let e=(0,d._)(["\n pointer-events: none;\n opacity: 0.5;\n "]);return rc=function(){return e},e}function rd(){let e=(0,d._)(["\n ","\n ","\n user-select: none;\n display: flex;\n align-items: center;\n gap: ",";\n padding: "," ",";\n color: ",";\n\n ","\n"]);return rd=function(){return e},e}function rp(){let e=(0,d._)(["\n ","\n ","\n display: flex;\n padding: "," ",";\n"]);return rp=function(){return e},e}function rh(){let e=(0,d._)(["\n pointer-events: none;\n opacity: 0.5;\n "]);return rh=function(){return e},e}function rg(){let e=(0,d._)(["\n ","\n ","\n color: ",";\n\n ","\n"]);return rg=function(){return e},e}function rf(){let e=(0,d._)(["\n width: 1.4em;\n height: 1.4em;\n border-radius: 50%;\n border: 1px solid ",";\n"]);return rf=function(){return e},e}function rm(){let e=(0,d._)(["\n ","\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n min-width: 0;\n flex: 1;\n"]);return rm=function(){return e},e}function ry(){let e=(0,d._)(["\n --typography-scale: 1;\n display: flex;\n flex-direction: column;\n gap: ",";\n width: 18em;\n"]);return ry=function(){return e},e}function rb(){let e=(0,d._)(["\n width: 100%;\n aspect-ratio: 1;\n border-radius: ",";\n border: 1px solid ",";\n"]);return rb=function(){return e},e}function rx(){let e=(0,d._)(["\n position: relative;\n width: 100%;\n"]);return rx=function(){return e},e}function rC(){let e=(0,d._)(["\n display: flex;\n width: 100%;\n height: 1.5em;\n border-radius: ",";\n border: 1px solid ",";\n"]);return rC=function(){return e},e}function rv(){let e=(0,d._)(["\n border: 2px solid ",";\n box-shadow: ",";\n width: 2em;\n height: 2em;\n top: 50%;\n border-radius: 50%;\n"]);return rv=function(){return e},e}function rj(){let e=(0,d._)(["\n ","\n user-select: none;\n z-index: ",";\n background: ",";\n border-radius: ",";\n box-shadow: ",";\n border: 1px solid ",";\n max-width: var(--radix-popover-content-available-width);\n color: ",";\n"]);return rj=function(){return e},e}function rA(){let e=(0,d._)(["\n display: flex;\n flex-direction: column;\n gap: ",";\n padding: ",";\n"]);return rA=function(){return e},e}function rw(){let e=(0,d._)(["\n ","\n color: ",";\n"]);return rw=function(){return e},e}function rk(){let e=(0,d._)(["\n width: 1.6em;\n height: 1.6em;\n border-radius: 50%;\n outline: ",";\n"]);return rk=function(){return e},e}function rP(){let e=(0,d._)(["\n background-color: ",";\n border: 1px solid ",";\n"]);return rP=function(){return e},e}function rS(){let e=(0,d._)(["\n ",";\n border: 1px solid ",";\n"]);return rS=function(){return e},e}function rL(){let e=(0,d._)(["\n display: flex;\n align-items: center;\n gap: ",";\n"]);return rL=function(){return e},e}function rM(){let e=(0,d._)(["\n padding: 8px 0 0 0;\n h4 {\n padding: 0 12px;\n ",";\n color: ",";\n }\n * + h4 {\n margin-top: 8px;\n }\n"]);return rM=function(){return e},e}function rO(){let e=(0,d._)(["\n padding: 4px;\n display: grid;\n grid-template-columns: repeat(6, 1fr);\n"]);return rO=function(){return e},e}function rT(){let e=(0,d._)(["\n padding: 8px;\n"]);return rT=function(){return e},e}function rD(){let e=(0,d._)(["\n padding: 8px 12px 12px 12px;\n"]);return rD=function(){return e},e}function rI(){let e=(0,d._)(["\n padding: "," 0;\n & + & {\n margin-top: ",";\n }\n"]);return rI=function(){return e},e}function rz(){let e=(0,d._)(["\n ","\n color: ",";\n padding: 0 ",";\n margin-bottom: ",";\n"]);return rz=function(){return e},e}function rE(){let e=(0,d._)(["\n user-select: none;\n flex-shrink: ",";\n flex-grow: ",";\n flex-basis: auto;\n min-width: 0;\n color: ",";\n"]);return rE=function(){return e},e}function rH(){let e=(0,d._)(["\n background: ",";\n padding: ",";\n margin: "," 0;\n border-radius: ",";\n "]);return rH=function(){return e},e}function rV(){let e=(0,d._)(["\n display: inline-flex;\n color: ",";\n\n ","\n"]);return rV=function(){return e},e}function rF(){let e=(0,d._)(["\n margin: -"," 0;\n &:first-child {\n margin-left: ",";\n }\n &:last-child {\n margin-right: ",";\n }\n"]);return rF=function(){return e},e}function rB(){let e=(0,d._)(["\n ","\n ","\n"]);return rB=function(){return e},e}function rR(){let e=(0,d._)(["\n ","\n color: ",";\n"]);return rR=function(){return e},e}function rY(){let e=(0,d._)(["\n &:hover {\n "," {\n color: ",";\n }\n "," {\n color: ",";\n }\n }\n "]);return rY=function(){return e},e}function rG(){let e=(0,d._)(["\n "," {\n color: ",";\n }\n "," {\n color: ",";\n }\n\n ","\n "]);return rG=function(){return e},e}function rU(){let e=(0,d._)(["\n background-color: ",";\n border-radius: ",";\n display: flex;\n align-items: center;\n gap: ",";\n padding: "," ",";\n ","\n"]);return rU=function(){return e},e}function rW(){let e=(0,d._)(["\n &:hover {\n > "," {\n background-color: ",";\n }\n }\n "]);return rW=function(){return e},e}function rN(){let e=(0,d._)(["\n ","\n user-select: none;\n display: block;\n width: 100%;\n min-width: 0;\n padding: ",";\n cursor: ",";\n ",";\n"]);return rN=function(){return e},e}function rK(){let e=(0,d._)(["\n ",";\n font-weight: 600;\n"]);return rK=function(){return e},e}function rZ(){let e=(0,d._)(["\n ",";\n"]);return rZ=function(){return e},e}function rX(){let e=(0,d._)(["\n display: inline-block;\n width: ",";\n"]);return rX=function(){return e},e}function r_(){let e=(0,d._)(["\n height: ",";\n display: flex;\n align-items: center;\n &:after {\n ","\n content: '';\n display: block;\n height: ",";\n border-radius: ",";\n width: 100%;\n }\n &:last-child {\n width: ",";\n }\n "]);return r_=function(){return e},e}function rQ(){let e=(0,d._)(["\n ","\n"]);return rQ=function(){return e},e}function rJ(){let e=(0,d._)(["\n display: flex;\n align-self: center;\n flex-grow: 0;\n flex-shrink: 0;\n user-select: none;\n"]);return rJ=function(){return e},e}function rq(){let e=(0,d._)(["\n display: inline-flex;\n align-items: center;\n\n "," + ",", "," + "," {\n margin-left: ",";\n }\n"]);return rq=function(){return e},e}function r$(){let e=(0,d._)(["\n display: flex;\n flex-direction: row;\n align-items: center;\n padding: "," "," ",";\n"]);return r$=function(){return e},e}function r1(){let e=(0,d._)(["\n ","\n ","\n flex-grow: 1;\n color: ",";\n"]);return r1=function(){return e},e}function r0(){let e=(0,d._)(["\n display: flex;\n margin: "," ",";\n"]);return r0=function(){return e},e}function r2(){let e=(0,d._)(["\n ","\n color: ",";\n"]);return r2=function(){return e},e}function r5(){let e=(0,d._)(["\n height: 1px;\n background: ",";\n margin: "," ",";\n"]);return r5=function(){return e},e}function r3(){let e=(0,d._)(["\n ",";\n max-width: ",";\n max-height: ",";\n overflow: auto;\n display: flex;\n flex-direction: column;\n border-radius: inherit;\n "]);return r3=function(){return e},e}function r7(){let e=(0,d._)(["\n ",";\n"]);return r7=function(){return e},e}function r9(){let e=(0,d._)(["\n padding: ",";\n color: ",";\n text-align: center;\n word-break: break-word;\n"]);return r9=function(){return e},e}function r4(){let e=(0,d._)(["\n flex: 1 1 auto;\n overflow-y: auto;\n padding: "," ",";\n"]);return r4=function(){return e},e}function r6(){let e=(0,d._)(["\n flex: 0 0 auto;\n padding: "," "," "," ",";\n\n & + "," {\n padding-top: 0;\n }\n"]);return r6=function(){return e},e}function r8(){let e=(0,d._)(["\n flex: 0 0 auto;\n padding: "," "," "," ",";\n\n & + * {\n padding-top: 0;\n }\n"]);return r8=function(){return e},e}function ie(){let e=(0,d._)(["\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n cursor: pointer;\n"]);return ie=function(){return e},e}function it(){let e=(0,d._)(["\n opacity: 0;\n cursor: pointer;\n height: 100%;\n left: 0;\n position: absolute;\n top: 0;\n width: 100%;\n"]);return it=function(){return e},e}function ir(){let e=(0,d._)(["\n font-size: ",";\n user-select: none;\n opacity: ",";\n background-color: ",";\n border-radius: ",";\n border: solid 1px ",";\n cursor: pointer;\n max-width: ",";\n min-width: ",";\n pointer-events: ",";\n position: relative;\n transition: all ",";\n width: ",";\n min-height: ",";\n display: inline-flex;\n flex-direction: row;\n align-items: center;\n gap: ",";\n padding: "," ",";\n &:hover {\n background-color: ",";\n border-color: ",";\n }\n &:focus-within {\n border-color: ",";\n }\n "]);return ir=function(){return e},e}function ii(){let e=(0,d._)(["\n ","\n"]);return ii=function(){return e},e}function io(){let e=(0,d._)(["\n display: flex;\n"]);return io=function(){return e},e}function il(){let e=(0,d._)(["\n flex-grow: 1;\n display: flex;\n flex-direction: column;\n min-width: 0;\n"]);return il=function(){return e},e}function ia(){let e=(0,d._)(["\n ","\n opacity: ",";\n color: ",";\n width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n display: inline-flex;\n"]);return ia=function(){return e},e}function is(){let e=(0,d._)(["\n ","\n color: ",";\n"]);return is=function(){return e},e}function iu(){let e=(0,d._)(["\n flex-grow: 1;\n"]);return iu=function(){return e},e}function ic(){let e=(0,d._)(["\n flex-grow: 0;\n flex-shrink: 0;\n display: flex;\n color: ",";\n"]);return ic=function(){return e},e}function id(){let e=(0,d._)(["\n ","\n ","\n display: flex;\n padding: 0 "," 0 ",";\n border-width: 1px;\n position: relative;\n ","\n "]);return id=function(){return e},e}function ip(){let e=(0,d._)(["\n ","\n"]);return ip=function(){return e},e}function ih(){let e=(0,d._)(["\n ","\n ","\n text-align: ",";\n width: 100%;\n "]);return ih=function(){return e},e}function ig(){let e=(0,d._)(["\n ","\n"]);return ig=function(){return e},e}function im(){let e=(0,d._)(["\n ",": var(--input-padding-x);\n "]);return im=function(){return e},e}function iy(){let e=(0,d._)(["\n pointer-events: none;\n display: inline-flex;\n position: absolute;\n ","\n top: 50%;\n transform: translateY(-50%);\n"]);return iy=function(){return e},e}function ib(){let e=(0,d._)(["\n ","\n border-radius: ",";\n ",";\n"]);return ib=function(){return e},e}function ix(){let e=(0,d._)(["\n --input-padding-x: ",";\n height: ",";\n "]);return ix=function(){return e},e}function iC(){let e=(0,d._)(["\n --input-padding-x: ",";\n height: ",";\n "]);return iC=function(){return e},e}function iv(){let e=(0,d._)(["\n --input-padding-x: ",";\n height: ",";\n "]);return iv=function(){return e},e}function ij(){let e=(0,d._)(["\n ","\n user-select: none;\n color: ",";\n margin-bottom: ",";\n"]);return ij=function(){return e},e}function iA(){let e=(0,d._)(["\n ","\n width: 1em;\n height: 1em;\n border-radius: 0.3em;\n"]);return iA=function(){return e},e}function iw(){let e=(0,d._)(["\n ","\n width: 100%;\n display: flex;\n gap: ",";\n align-items: center;\n"]);return iw=function(){return e},e}function ik(){let e=(0,d._)(["\n display: flex;\n align-items: center;\n padding: "," ",";\n "," {\n background-color: ",";\n }\n\n "," {\n background-color: ",";\n }\n border-radius: ",";\n height: ",";\n gap: ",";\n flex: 0;\n"]);return ik=function(){return e},e}function iP(){let e=(0,d._)(["\n ","\n font-weight: ",";\n align-items: center;\n padding: 0 ",";\n flex: 1;\n text-wrap: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n"]);return iP=function(){return e},e}function iS(){let e=(0,d._)(["\n ","\n user-select: none;\n z-index: ",";\n "," {\n background-color: ",";\n }\n\n "," {\n background-color: ",";\n }\n border-radius: ",";\n max-width: var(--radix-popover-content-available-width);\n color: ",";\n"]);return iS=function(){return e},e}function iL(){let e=(0,d._)(["\n position: relative;\n background-color: ",";\n border-radius: ",";\n box-shadow: ",";\n border: 1px solid transparent;\n overflow: hidden;\n padding: ",";\n\n &::before {\n pointer-events: none;\n content: '';\n position: absolute;\n inset: 0;\n border-radius: inherit;\n ","\n"]);return iL=function(){return e},e}function iM(){let e=(0,d._)(["\n ","\n width: 100%;\n display: flex;\n flex-direction: column;\n gap: ",";\n align-items: center;\n justify-content: center;\n"]);return iM=function(){return e},e}function iO(){let e=(0,d._)(["\n display: flex;\n align-items: center;\n justify-content: center;\n"]);return iO=function(){return e},e}function iT(){let e=(0,d._)(["\n ","\n font-weight: ",";\n border-radius: ",";\n display: flex;\n gap: ",";\n justify-content: center;\n padding: ",";\n transition: background-color 0.1s ease-in-out;\n\n &[aria-checked='true'],\n &[data-state='checked'] {\n opacity: 1;\n "," {\n background-color: ",";\n }\n\n "," {\n background-color: ",";\n }\n }\n\n &:hover {\n "," {\n background-color: ",";\n }\n "," {\n background-color: ",";\n }\n }\n"]);return iT=function(){return e},e}function iD(){let e=(0,d._)(["\n line-height: ",";\n flex-direction: column;\n justify-content: center;\n display: flex;\n text-wrap: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n gap: ",";\n width: 100%;\n min-width: ",";\n"]);return iD=function(){return e},e}function iI(){let e=(0,d._)(["\n pointer-events: none;\n opacity: 0.5;\n "]);return iI=function(){return e},e}function iz(){let e=(0,d._)(["\n ","\n ","\n user-select: none;\n display: flex;\n align-items: center;\n gap: ",";\n padding: "," ",";\n color: ",";\n\n ","\n"]);return iz=function(){return e},e}function iE(){let e=(0,d._)(["\n ","\n ","\n display: flex;\n padding: "," ",";\n"]);return iE=function(){return e},e}function iH(){let e=(0,d._)(["\n pointer-events: none;\n opacity: 0.5;\n "]);return iH=function(){return e},e}function iV(){let e=(0,d._)(["\n ","\n ","\n color: ",";\n\n ","\n"]);return iV=function(){return e},e}function iF(){let e=(0,d._)(["\n width: 1.4em;\n height: 1.4em;\n border-radius: 50%;\n border: 1px solid ",";\n"]);return iF=function(){return e},e}function iB(){let e=(0,d._)(["\n ","\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n min-width: 0;\n flex: 1;\n"]);return iB=function(){return e},e}function iR(){let e=(0,d._)(["\n --typography-scale: 1;\n display: flex;\n flex-direction: column;\n gap: ",";\n width: 18em;\n"]);return iR=function(){return e},e}function iY(){let e=(0,d._)(["\n width: 100%;\n aspect-ratio: 1;\n border-radius: ",";\n border: 1px solid ",";\n"]);return iY=function(){return e},e}function iG(){let e=(0,d._)(["\n position: relative;\n width: 100%;\n"]);return iG=function(){return e},e}function iU(){let e=(0,d._)(["\n display: flex;\n width: 100%;\n height: 1.5em;\n border-radius: ",";\n border: 1px solid ",";\n"]);return iU=function(){return e},e}function iW(){let e=(0,d._)(["\n border: 2px solid ",";\n box-shadow: ",";\n width: 2em;\n height: 2em;\n top: 50%;\n border-radius: 50%;\n"]);return iW=function(){return e},e}function iN(){let e=(0,d._)(["\n ","\n user-select: none;\n z-index: ",";\n background: ",";\n border-radius: ",";\n box-shadow: ",";\n border: 1px solid ",";\n max-width: var(--radix-popover-content-available-width);\n color: ",";\n"]);return iN=function(){return e},e}function iK(){let e=(0,d._)(["\n display: flex;\n flex-direction: column;\n gap: ",";\n padding: ",";\n"]);return iK=function(){return e},e}function iZ(){let e=(0,d._)(["\n ","\n color: ",";\n"]);return iZ=function(){return e},e}function iX(){let e=(0,d._)(["\n display: flex;\n align-items: center;\n"]);return iX=function(){return e},e}function i_(){let e=(0,d._)(["\n ","\n"]);return i_=function(){return e},e}function iQ(){let e=(0,d._)(["\n ","\n"]);return iQ=function(){return e},e}function iJ(){let e=(0,d._)(["\n ","\n"]);return iJ=function(){return e},e}function iq(){let e=(0,d._)(["\n ","\n"]);return iq=function(){return e},e}function i$(){let e=(0,d._)(["\n ","\n"]);return i$=function(){return e},e}function i1(){let e=(0,d._)(["\n ","\n"]);return i1=function(){return e},e}function i0(){let e=(0,d._)(["\n .ProseMirror ."," {\n display: inline-block;\n }\n"]);return i0=function(){return e},e}function i2(){let e=(0,d._)(["\n blockquote."," {\n border-left: 3px solid ",";\n padding-left: ",";\n font-style: italic;\n\n p {\n color: ",";\n }\n }\n"]);return i2=function(){return e},e}function i5(){let e=(0,d._)(["\n h1."," {\n ","\n\n &:not(:last-child) {\n margin-bottom: ",";\n }\n\n &:not(:first-child) {\n margin-top: ",";\n }\n }\n\n h2."," {\n ","\n\n &:not(:first-child) {\n margin-top: ",";\n }\n }\n\n h3."," {\n ","\n\n &:not(:last-child) {\n margin-bottom: ",";\n }\n\n &:not(:first-child) {\n margin-top: ",";\n }\n }\n\n h6."," {\n ","\n\n &:not(:first-child) {\n margin-top: ",";\n }\n }\n\n p."," + p."," {\n margin-top: ",";\n }\n"]);return i5=function(){return e},e}function i3(){let e=(0,d._)(["\n a."," {\n ","\n }\n"]);return i3=function(){return e},e}function i7(){let e=(0,d._)(["\n ul.",", ol."," {\n padding-left: ",";\n }\n\n ul."," {\n list-style-type: disc;\n }\n\n ol."," {\n list-style-type: decimal;\n }\n"]);return i7=function(){return e},e}function i9(){let e=(0,d._)(["\n p."," {\n ","\n }\n"]);return i9=function(){return e},e}function i4(){let e=(0,d._)(["\n u."," {\n text-decoration: none;\n border-bottom: 1px solid currentColor;\n }\n"]);return i4=function(){return e},e}function i6(){let e=(0,d._)(["\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n"]);return i6=function(){return e},e}function i8(){let e=(0,d._)(["\n ","\n\n .ProseMirror-focused {\n /** Overwrite default [data-input-type='keyboard'] *:focus outline */\n & {\n outline: none;\n }\n }\n\n * {\n caret-color: ",";\n }\n"]);return i8=function(){return e},e}function oe(){let e=(0,d._)(["\n content: attr(data-placeholder);\n position: absolute;\n left: 0;\n right: 0;\n color: var(--text-editor-placeholder-color, ",");\n pointer-events: none;\n"]);return oe=function(){return e},e}function ot(){let e=(0,d._)(["\n .is-editor-empty:before,\n .is-editor-empty .is-empty:before {\n ","\n }\n"]);return ot=function(){return e},e}function on(){let e=(0,d._)(["\n width: 100%;\n height: 100%;\n display: flex;\n\n > div {\n flex: 1;\n display: flex;\n }\n\n [contenteditable] {\n flex: 1;\n }\n "]);return on=function(){return e},e}function or(){let e=(0,d._)(["\n ","\n overflow: auto;\n\n ","\n"]);return or=function(){return e},e}function oi(){let e=(0,d._)(["\n ","\n max-width: 100%;\n flex-grow: 1;\n max-height: 12em;\n overflow-y: auto;\n color: ",";\n\n // Overrides placeholder styles\n .is-editor-empty::before {\n height: unset;\n color: ",";\n }\n\n .ProseMirror :is(h1, h2, h3, h4, h5, h6) {\n // Removes leading spaces from headings, left from markdown\n white-space: pre-line;\n }\n\n /* Reduce the scrollbar */\n &::-webkit-scrollbar {\n width: 0.25em;\n }\n\n &::-webkit-scrollbar-track {\n background-color: transparent;\n }\n\n &::-webkit-scrollbar-thumb {\n background-color: ",";\n border-radius: 0.5em;\n }\n"]);return oi=function(){return e},e}function oo(){let e=(0,d._)(["\n margin-right: auto;\n"]);return oo=function(){return e},e}function ol(){let e=(0,d._)(["\n display: flex;\n flex-direction: column;\n padding: 0.2em 0.6em;\n max-width: 20em;\n overflow: hidden;\n"]);return ol=function(){return e},e}function oa(){let e=(0,d._)(["\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n gap: ",";\n"]);return oa=function(){return e},e}function os(){let e=(0,d._)(["\n ","\n ","\n color: ",";\n"]);return os=function(){return e},e}function ou(){let e=(0,d._)(["\n ","\n ","\n padding-top: 0.4em;\n margin: 0.4em 0;\n border-top: 1px solid rgba(255, 255, 255, 0.08);\n color: ",";\n"]);return ou=function(){return e},e}function oc(){let e=(0,d._)(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: ",";\n"]);return oc=function(){return e},e}function od(){let e=(0,d._)(["\n ","\n color: ",";\n"]);return od=function(){return e},e}function op(){let e=(0,d._)(["\n display: flex;\n flex-flow: column;\n min-width: 20em;\n max-width: 30em;\n"]);return op=function(){return e},e}function oh(){let e=(0,d._)(["\n color: white;\n max-width: 100%;\n padding: 1.6em 1.6em 1.2em 1.6em;\n max-height: 20em;\n overflow-y: scroll;\n &::-webkit-scrollbar {\n display: none;\n }\n"]);return oh=function(){return e},e}function og(){let e=(0,d._)(["\n ","\n display: flex;\n justify-content: space-between;\n padding: 1.2em 1.6em;\n border-top: 1px solid rgba(255, 255, 255, 0.08);\n color: ",";\n"]);return og=function(){return e},e}function of(){let e=(0,d._)(["\n h1."," {\n ","\n margin-bottom: ",";\n }\n"]);return of=function(){return e},e}function om(){let e=(0,d._)(["\n ","\n\n .is-empty::before {\n ","\n }\n"]);return om=function(){return e},e}function oy(){let e=(0,d._)(["\n ","\n\n .ProseMirror-focused {\n /** Hide default selection highlight when a NodeView is a part of text editor selection */\n [contenteditable='false'] textarea,\n [contenteditable='false'] input {\n &::selection {\n background-color: transparent;\n }\n }\n }\n"]);return oy=function(){return e},e}function ob(){let e=(0,d._)(["\n .is-editor-empty::before {\n ","\n }\n\n // We do not want headers in dashboard summaries to exceed the size of the page title\n .ProseMirror {\n h1,\n h2,\n h3,\n h4,\n h5 {\n font-weight: ",";\n font-size: inherit;\n line-height: inherit;\n font-weight: medium;\n }\n h1 {\n font-size: 1.8em;\n line-height: 2.4em;\n }\n\n h2 {\n font-size: 1.7em;\n line-height: 2.2em;\n }\n\n h3 {\n font-size: 1.6em;\n line-height: 2em;\n }\n }\n"]);return ob=function(){return e},e}function ox(){let e=(0,d._)(["\n ","\n"]);return ox=function(){return e},e}function oC(){let e=(0,d._)(["\n width: 100%;\n height: 100%;\n\n position: absolute;\n left: -999999px;\n top: -999999px;\n opacity: 0;\n pointer-events: none;\n\n h1."," {\n max-width: 100%;\n display: inline-block;\n }\n\n p."," {\n max-width: 100%;\n display: inline-block;\n }\n"]);return oC=function(){return e},e}function ov(){let e=(0,d._)(["\n .is-empty:before {\n ","\n }\n\n [contenteditable]:not(.ProseMirror-focused) {\n h1.",", p."," {\n ","\n }\n }\n\n h1."," {\n font-size: calc(","px * var(--typography-scale));\n margin: 0 !important;\n }\n\n p."," {\n font-size: calc(","px * var(--typography-scale));\n font-weight: 400;\n color: ",";\n margin: 0 !important;\n }\n"]);return ov=function(){return e},e}function oj(){let e=(0,d._)(["\n [contenteditable] {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n justify-content: center;\n text-align: center;\n }\n\n "," [contenteditable] {\n align-items: center;\n }\n\n /* Placeholder */\n .is-empty:before {\n left: 50%;\n transform: translateX(-50%);\n }\n"]);return oj=function(){return e},e}function oA(){let e=(0,d._)(["\n grid-template-columns: minmax(7.2em, auto) 1fr;\n "]);return oA=function(){return e},e}function ow(){let e=(0,d._)(["\n [contenteditable] {\n display: grid;\n grid-template-columns: auto 1fr;\n align-items: baseline;\n gap: ",";\n\n ","\n }\n"]);return ow=function(){return e},e}function ok(){let e=(0,d._)(["\n width: 100%;\n height: 100%;\n display: flex;\n\n > div {\n max-width: 100%;\n flex: 1;\n display: flex;\n }\n\n [contenteditable] {\n max-width: 100%;\n flex: 1;\n }\n "]);return ok=function(){return e},e}function oP(){let e=(0,d._)(["\n && h1 {\n font-size: ","px;\n }\n\n && p {\n font-size: ","px;\n }\n "]);return oP=function(){return e},e}function oS(){let e=(0,d._)(["\n ","\n overflow: hidden;\n position: relative;\n\n ","\n ","\n\n ","\n\n h1."," {\n line-height: calc(\n ","px * var(--typography-scale)\n );\n }\n\n p."," {\n line-height: calc(\n ","px * var(--typography-scale)\n );\n }\n\n ","\n"]);return oS=function(){return e},e}function oL(){let e=(0,d._)(["\n p."," {\n font-size: calc(","px * var(--typography-scale));\n line-height: 1.25;\n text-align: center;\n }\n"]);return oL=function(){return e},e}function oM(){let e=(0,d._)(["\n ","\n\n .is-editor-empty:before,\n .is-editor-empty .is-empty:before {\n ","\n transform: translateX(-50%);\n color: inherit;\n opacity: 0.5;\n }\n\n *::selection {\n background: var(--selection);\n color: ",";\n }\n\n * {\n caret-color: var(--selection);\n }\n"]);return oM=function(){return e},e}function oO(){let e=(0,d._)(["\n line-height: 1;\n z-index: 2;\n"]);return oO=function(){return e},e}function oT(){let e=(0,d._)(["\n display: flex;\n flex-direction: row;\n background: ",";\n border-radius: ",";\n box-shadow: ",";\n padding: ",";\n font-family: ",";\n\n &:before {\n pointer-events: none;\n content: '';\n position: absolute;\n inset: 0;\n ",";\n }\n"]);return oT=function(){return e},e}function oD(){let e=(0,d._)(["\n ","\n ","\n"]);return oD=function(){return e},e}function oI(){let e=(0,d._)(["\n :first-child[data-placeholder]::before,\n :nth-child(2)[data-placeholder]::before {\n ","\n }\n h1,\n h2,\n h3 {\n &.",":not(:first-child) {\n margin-top: 8px;\n }\n }\n"]);return oI=function(){return e},e}function oz(){let e=(0,d._)(["\n position: absolute;\n left: 0;\n top: 0;\n display: flex;\n"]);return oz=function(){return e},e}function oE(){let e=(0,d._)(["\n transform: translate(-50%, -50%) rotate(-90deg) translateX(-50%);\n "]);return oE=function(){return e},e}function oH(){let e=(0,d._)(["\n transform: translate(-50%, -50%);\n "]);return oH=function(){return e},e}function oV(){let e=(0,d._)(["\n ","\n"]);return oV=function(){return e},e}function oF(){let e=(0,d._)(["\n border-radius: ",";\n padding: ","px ","px;\n "]);return oF=function(){return e},e}function oB(){let e=(0,d._)(["\n ","\n display: block;\n color: ",";\n opacity: ",";\n ","\n"]);return oB=function(){return e},e}function oR(){let e=(0,d._)(["\n position: absolute;\n"]);return oR=function(){return e},e}function oY(){let e=(0,d._)(["\n ","\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n span + span {\n margin-left: 0.4em;\n }\n span:nth-child(3) {\n opacity: 0.8;\n }\n"]);return oY=function(){return e},e}function oG(){let e=(0,d._)(["\n ","\n background: ",";\n color: ",";\n border: 1px solid ",";\n padding: "," ",";\n border-radius: ",";\n"]);return oG=function(){return e},e}function oU(){let e=(0,d._)(["\n position: absolute;\n"]);return oU=function(){return e},e}function oW(){let e=(0,d._)(["\n position: absolute;\n left: 0;\n top: 0;\n"]);return oW=function(){return e},e}function oN(){let e=(0,d._)(["\n overflow: visible;\n position: absolute;\n inset: 0;\n pointer-events: none;\n"]);return oN=function(){return e},e}function oK(){let e=(0,d._)(["\n border: 2px solid ",";\n"]);return oK=function(){return e},e}function oZ(){let e=(0,d._)(["\n position: absolute;\n left: 0;\n top: 0;\n width: 30px;\n height: 30px;\n border-radius: 50%;\n"]);return oZ=function(){return e},e}function oX(){let e=(0,d._)(["\n position: absolute;\n left: 0;\n top: 0;\n width: 8px;\n height: 8px;\n border-radius: 50%;\n"]);return oX=function(){return e},e}function o_(){let e=(0,d._)(["\n overflow: visible;\n position: absolute;\n inset: 0;\n pointer-events: none;\n"]);return o_=function(){return e},e}function oQ(){let e=(0,d._)(["\n overflow: visible;\n position: absolute;\n inset: 0;\n pointer-events: none;\n"]);return oQ=function(){return e},e}function oJ(){let e=(0,d._)(["\n overflow: visible;\n position: absolute;\n inset: 0;\n pointer-events: none;\n"]);return oJ=function(){return e},e}function oq(){let e=(0,d._)(["\n overflow: visible;\n position: absolute;\n inset: 0;\n pointer-events: none;\n"]);return oq=function(){return e},e}function o$(){let e=(0,d._)(["\n stroke: ",";\n"]);return o$=function(){return e},e}function o1(){let e=(0,d._)(["\n position: absolute;\n"]);return o1=function(){return e},e}function o0(){let e=(0,d._)(["\n position: absolute;\n"]);return o0=function(){return e},e}function o2(){let e=(0,d._)(["\n position: absolute;\n inset: 0;\n"]);return o2=function(){return e},e}function o5(){let e=(0,d._)(["\n position: absolute;\n inset: 0;\n"]);return o5=function(){return e},e}function o3(){let e=(0,d._)(["\n overflow: visible;\n position: absolute;\n"]);return o3=function(){return e},e}function o7(){let e=(0,d._)(["\n pointer-events: all;\n"]);return o7=function(){return e},e}function o9(){let e=(0,d._)(["\n display: flex;\n align-items: center;\n"]);return o9=function(){return e},e}function o4(){let e=(0,d._)(["\n display: flex;\n align-items: center;\n\n // ensures the shadow isn't clipped\n > svg {\n overflow: visible;\n padding: 0.1em;\n }\n"]);return o4=function(){return e},e}function o6(){let e=(0,d._)(["\n ","\n display: flex;\n flex-direction: row;\n border-radius: ",";\n box-shadow: ",";\n padding: ",";\n color: ",";\n background: ",";\n &:before {\n pointer-events: none;\n content: '';\n position: absolute;\n inset: 0;\n ",";\n }\n"]);return o6=function(){return e},e}function o8(){let e=(0,d._)(["\n fill: none;\n"]);return o8=function(){return e},e}function le(){let e=(0,d._)(["\n fill: none;\n"]);return le=function(){return e},e}function lt(){let e=(0,d._)(["\n pointer-events: all;\n"]);return lt=function(){return e},e}function ln(){let e=(0,d._)(["\n display: flex;\n align-items: center;\n"]);return ln=function(){return e},e}function lr(){let e=(0,d._)(["\n ","\n display: flex;\n flex-direction: row;\n border-radius: ",";\n box-shadow: ",";\n padding: ",";\n color: ",";\n position: relative;\n background: ",";\n &:before {\n pointer-events: none;\n content: '';\n position: absolute;\n inset: 0;\n ",";\n }\n"]);return lr=function(){return e},e}function li(){let e=(0,d._)(["\n overflow: visible;\n position: absolute;\n"]);return li=function(){return e},e}function lo(){let e=(0,d._)(["\n pointer-events: all;\n"]);return lo=function(){return e},e}function ll(){let e=(0,d._)(["\n fill: ",";\n"]);return ll=function(){return e},e}function la(){let e=(0,d._)(["\n ","\n"]);return la=function(){return e},e}function ls(){let e=(0,d._)(["\n position: absolute;\n inset: 0;\n"]);return ls=function(){return e},e}function lu(){let e=(0,d._)(["\n position: absolute;\n width: ","px;\n height: ","px;\n border-radius: 50%;\n background: ",";\n margin: -","px;\n"]);return lu=function(){return e},e}function lc(){let e=(0,d._)(["\n top: 0;\n left: 0;\n cursor: nwse-resize;\n"]);return lc=function(){return e},e}function ld(){let e=(0,d._)(["\n top: 0;\n right: 0;\n cursor: nesw-resize;\n"]);return ld=function(){return e},e}function lp(){let e=(0,d._)(["\n bottom: 0;\n left: 0;\n cursor: nesw-resize;\n"]);return lp=function(){return e},e}function lh(){let e=(0,d._)(["\n bottom: 0;\n right: 0;\n cursor: nwse-resize;\n"]);return lh=function(){return e},e}function lg(){let e=(0,d._)(["\n position: absolute;\n pointer-events: all;\n"]);return lg=function(){return e},e}function lf(){let e=(0,d._)(["\n position: absolute;\n left: 0;\n top: 0;\n pointer-events: none;\n"]);return lf=function(){return e},e}function lm(){let e=(0,d._)(["\n display: flex;\n background: ",";\n border-radius: ",";\n box-shadow: ",";\n padding: ",";\n font-family: ",";\n\n &:before {\n pointer-events: none;\n content: '';\n position: absolute;\n inset: 0;\n ",";\n }\n"]);return lm=function(){return e},e}function ly(){let e=(0,d._)(["\n *::selection {\n background: transparent;\n color: inherit;\n }\n "]);return ly=function(){return e},e}function lb(){let e=(0,d._)(["\n flex-grow: 1;\n min-height: 2.3em; // Same height as pinned text annotation\n color: ",";\n word-wrap: break-word;\n white-space: break-spaces;\n pointer-events: ",";\n cursor: ",";\n border-radius: 0.6em;\n display: flex;\n align-items: center;\n padding: 0 0.3em 0.1em 0.3em;\n\n > * {\n width: 100%;\n }\n\n p."," {\n line-height: 1.2;\n }\n\n // Workaround for Safari to prevent selecting the text from nearby annotations when resizing this annotation.\n ","\n"]);return lb=function(){return e},e}function lx(){let e=(0,d._)(["\n opacity: ",";\n"]);return lx=function(){return e},e}function lC(){let e=(0,d._)(["\n opacity: "," !important;\n\n .moveable-line.moveable-direction:not(.moveable-edge) {\n border: 1px solid ",";\n }\n"]);return lC=function(){return e},e}function lv(){let e=(0,d._)(["\n & + .moveable-control-box {\n ","\n }\n "]);return lv=function(){return e},e}function lj(){let e=(0,d._)(["\n position: absolute;\n left: 0;\n top: 0;\n min-width: auto;\n min-height: auto;\n max-width: none;\n max-height: none;\n display: flex;\n flex-direction: column;\n pointer-events: ",";\n\n &:hover + .moveable-control-box {\n ","\n }\n\n ","\n\n & + .moveable-control-box {\n --bounds-color: "," !important;\n pointer-events: all;\n opacity: ",";\n\n &:hover {\n ","\n }\n\n .moveable-line.moveable-direction:not(.moveable-edge) {\n background: "," !important;\n }\n\n .moveable-control {\n border-width: 0 !important;\n background: "," !important;\n width: 10px !important;\n height: 10px !important;\n margin-top: -5px !important;\n margin-left: -5px !important;\n }\n\n .moveable-direction.moveable-e,\n .moveable-direction.moveable-w {\n cursor: ew-resize !important;\n }\n }\n"]);return lj=function(){return e},e}function lA(){let e=(0,d._)(["\n position: absolute;\n width: 3.2em;\n height: 3.2em;\n cursor: pointer;\n pointer-events: ",";\n z-index: ",";\n"]);return lA=function(){return e},e}function lw(){let e=(0,d._)(["\n position: absolute;\n transform: translate(0, -50%);\n z-index: ",";\n pointer-events: ",";\n\n &:hover {\n z-index: ",";\n }\n"]);return lw=function(){return e},e}function lk(){let e=(0,d._)(["\n width: 1.8em;\n height: 1.8em;\n "]);return lk=function(){return e},e}function lP(){let e=(0,d._)(["\n position: absolute;\n width: 0.8em;\n height: 0.8em;\n border-radius: 50%;\n transform: translate(-50%, -50%);\n border: solid 1.5px ",";\n z-index: ",";\n color: ",";\n filter: drop-shadow(0px 2px 2px rgba(14, 14, 52, 0.08)) drop-shadow(0px 0px 2px rgba(15, 15, 24, 0.12));\n display: flex;\n align-items: center;\n justify-content: center;\n pointer-events: ",";\n cursor: ",";\n transition:\n width 0.2s ease-in-out,\n height 0.2s ease-in-out;\n &:hover {\n ","\n\n & > * {\n opacity: 1;\n }\n }\n\n & > * {\n opacity: 0;\n }\n"]);return lP=function(){return e},e}function lS(){let e=(0,d._)(["\n position: absolute;\n pointer-events: none;\n z-index: ",";\n"]);return lS=function(){return e},e}function lL(){let e=(0,d._)(["\n ","\n"]);return lL=function(){return e},e}function lM(){let e=(0,d._)(["\n pointer-events: all;\n fill: none;\n"]);return lM=function(){return e},e}function lO(){let e=(0,d._)(["\n ","\n user-select: none;\n fill: var(--typography-chart-text-color, ",");\n white-space: pre;\n"]);return lO=function(){return e},e}function lT(){let e=(0,d._)(["\n position: absolute;\n left: 0;\n top: 0;\n will-change: transform;\n z-index: ",";\n"]);return lT=function(){return e},e}function lD(){let e=(0,d._)(["\n cursor: text;\n display: flex;\n align-items: center;\n justify-content: ",";\n text-align: ",";\n opacity: ",";\n transition: opacity ",";\n"]);return lD=function(){return e},e}function lI(){let e=(0,d._)(["\n ",";\n background: ",";\n color: ",";\n border-radius: ",";\n box-shadow: ",";\n padding: 0 ",";\n margin: 0 ",";\n\n input {\n border: 0;\n padding: 0;\n color: inherit;\n background: inherit;\n font-weight: inherit;\n font-size: inherit;\n text-align: inherit;\n\n &::placeholder {\n color: inherit;\n opacity: 0.5;\n }\n }\n"]);return lI=function(){return e},e}function lz(){let e=(0,d._)(["\n display: grid;\n align-items: center;\n grid-template-areas: 'overlap';\n overflow: hidden;\n"]);return lz=function(){return e},e}function lE(){let e=(0,d._)(["\n grid-area: overlap;\n visibility: hidden;\n white-space: pre;\n font: inherit;\n letter-spacing: inherit;\n line-height: inherit;\n box-sizing: content-box;\n padding-right: 2px;\n"]);return lE=function(){return e},e}function lH(){let e=(0,d._)(["\n grid-area: overlap;\n font: inherit;\n letter-spacing: inherit;\n line-height: inherit;\n white-space: nowrap;\n background: transparent;\n border: none;\n outline: none;\n box-sizing: content-box;\n padding-right: 2px;\n min-width: 1px;\n overflow-x: auto;\n"]);return lH=function(){return e},e}function lV(){let e=(0,d._)(["\n ","\n fill: var(--typography-chart-text-color, ",");\n user-select: none;\n"]);return lV=function(){return e},e}function lF(){let e=(0,d._)(["\n flex: 1;\n user-select: none;\n height: 100%;\n position: relative;\n"]);return lF=function(){return e},e}function lB(){let e=(0,d._)(["\n position: absolute;\n inset: 0;\n pointer-events: none;\n z-index: ",";\n"]);return lB=function(){return e},e}function lR(){let e=(0,d._)(["\n position: absolute;\n inset: 0;\n pointer-events: none;\n z-index: ",";\n"]);return lR=function(){return e},e}function lY(){let e=(0,d._)(["\n display: block;\n overflow: visible;\n position: absolute;\n inset: 0;\n clip-path: inset(-2em);\n z-index: ",";\n"]);return lY=function(){return e},e}function lG(){let e=(0,d._)(["\n position: absolute;\n z-index: 2;\n width: fit-content;\n max-width: 50%;\n right: 0;\n top: 0;\n height: 100%;\n display: flex;\n align-items: center;\n overflow: hidden;\n"]);return lG=function(){return e},e}function lU(){let e=(0,d._)(["\n position: absolute;\n"]);return lU=function(){return e},e}function lW(){let e=(0,d._)(["\n display: inline-block;\n position: absolute;\n left: 50%;\n top: 50%;\n"]);return lW=function(){return e},e}function lN(){let e=(0,d._)(["\n width: 100%;\n height: 100%;\n overflow: auto;\n position: relative;\n border-radius: ",";\n"]);return lN=function(){return e},e}function lK(){let e=(0,d._)(["\n width: 100%;\n height: 100%;\n table-layout: fixed;\n border-collapse: separate;\n border-spacing: 0;\n"]);return lK=function(){return e},e}function lZ(){let e=(0,d._)([""]);return lZ=function(){return e},e}function lX(){let e=(0,d._)(["\n position: sticky;\n top: 0;\n padding: 0;\n background: ",";\n text-align: start;\n"]);return lX=function(){return e},e}function l_(){let e=(0,d._)(["\n ","\n ","\n color: ",";\n padding: "," ",";\n text-align: ",";\n"]);return l_=function(){return e},e}function lQ(){let e=(0,d._)(["\n display: flex;\n flex-flow: row nowrap;\n align-items: center;\n gap: ",";\n padding: "," "," ",";\n justify-content: ",";\n"]);return lQ=function(){return e},e}function lJ(){let e=(0,d._)(["\n flex-shrink: 0;\n display: flex;\n"]);return lJ=function(){return e},e}function lq(){let e=(0,d._)(["\n ","\n ","\n color: ",";\n flex-grow: ",";\n"]);return lq=function(){return e},e}function l$(){let e=(0,d._)([""]);return l$=function(){return e},e}function l1(){let e=(0,d._)(["\n ",", "," {\n border: 0 solid ",";\n border-right-width: 1px;\n border-bottom-width: 1px;\n\n &:first-child {\n border-left-color: ",";\n border-left-width: 1px;\n }\n\n &:last-child {\n border-right-color: ",";\n }\n }\n\n "," {\n border-top-width: 1px;\n border-top-color: ",";\n\n &:first-child {\n border-top-left-radius: ",";\n }\n\n &:last-child {\n border-top-right-radius: ",";\n }\n\n &:first-child,\n &:last-child {\n // Hides cell borders visible through sticky header when scrolling.\n box-shadow: 0 -6px 0 0 ",";\n }\n }\n\n &:last-child {\n ",":first-child {\n border-bottom-left-radius: ",";\n }\n ",":last-child {\n border-bottom-right-radius: ",";\n }\n "," {\n border-bottom-color: ",";\n }\n }\n"]);return l1=function(){return e},e}function l0(){let e=(0,d._)(["\n flex-grow: 1;\n display: flex;\n flex-wrap: nowrap;\n gap: ","px;\n justify-content: ",";\n align-items: ",";\n flex-direction: ",";\n user-select: none;\n ",";\n"]);return l0=function(){return e},e}function l2(){let e=(0,d._)([""]);return l2=function(){return e},e}function l5(){let e=(0,d._)(["\n border: 1px solid ",";\n border-radius: calc(1.4em * var(--typography-scale));\n padding: calc("," * var(--typography-scale)) calc("," * var(--typography-scale));\n"]);return l5=function(){return e},e}function l3(){let e=(0,d._)(["\n &:hover {\n cursor: pointer;\n }\n "]);return l3=function(){return e},e}function l7(){let e=(0,d._)(["\n display: inline-flex;\n gap: calc(","px * var(--typography-scale));\n align-items: center;\n max-width: 40em;\n transition: opacity ",";\n opacity: ",";\n background-color: ",";\n ","\n\n ","\n"]);return l7=function(){return e},e}function l9(){let e=(0,d._)(["\n color: var(--typography-chart-text-color, ",");\n "]);return l9=function(){return e},e}function l4(){let e=(0,d._)(["\n color: var(--typography-chart-text-color, ",");\n "]);return l4=function(){return e},e}function l6(){let e=(0,d._)(["\n ","\n ","\n\n ","\n\n ","\n"]);return l6=function(){return e},e}function l8(){let e=(0,d._)(["\n color: var(--typography-chart-text-color, ",");\n display: inline-flex;\n gap: 0.4em;\n padding-left: 0.4em;\n"]);return l8=function(){return e},e}function ae(){let e=(0,d._)(["\n display: inline-flex;\n align-items: center;\n\n > :nth-child(1) {\n position: relative;\n z-index: 1;\n }\n\n > :nth-child(2) {\n margin-left: ",";\n }\n"]);return ae=function(){return e},e}function at(){let e=(0,d._)(["\n width: calc(12px * var(--typography-scale));\n display: flex;\n justify-content: center;\n\n > svg {\n transform: scale(var(--typography-scale));\n }\n"]);return at=function(){return e},e}function an(){let e=(0,d._)(["\n from {\n opacity: 0;\n transform: scale(0.95);\n }\n to {\n opacity: 1;\n transform: scale(1);\n }\n"]);return an=function(){return e},e}function ar(){let e=(0,d._)([""]);return ar=function(){return e},e}function ai(){let e=(0,d._)(["\n user-select: none;\n z-index: ",";\n max-width: 20em;\n max-height: var(--radix-popover-content-available-height);\n display: flex;\n flex-direction: column;\n background: ",";\n border: 1px solid ",";\n border-radius: 0.6em;\n transform-origin: var(--radix-popover-content-transform-origin);\n animation: "," 400ms cubic-bezier(0.16, 1, 0.3, 1);\n will-change: transform, opacity;\n"]);return ai=function(){return e},e}function ao(){let e=(0,d._)(["\n overflow-y: auto;\n padding: "," ",";\n"]);return ao=function(){return e},e}function al(){let e=(0,d._)(["\n display: flex;\n flex-direction: column;\n gap: ",";\n"]);return al=function(){return e},e}function aa(){let e=(0,d._)(["\n fill: ",";\n"]);return aa=function(){return e},e}function as(){let e=(0,d._)(["\n position: relative;\n"]);return as=function(){return e},e}function au(){let e=(0,d._)(["\n ","\n position: relative;\n z-index: 3;\n margin-left: ",";\n display: flex;\n gap: ","px;\n align-items: center;\n"]);return au=function(){return e},e}function ac(){let e=(0,d._)(["\n display: flex;\n align-items: center;\n"]);return ac=function(){return e},e}function ad(){let e=(0,d._)(["\n ","\n color: ",";\n white-space: nowrap;\n"]);return ad=function(){return e},e}function ap(){let e=(0,d._)(["\n ","\n position: absolute;\n z-index: 2;\n inset: 0;\n left: calc("," / 2);\n opacity: 0.67;\n"]);return ap=function(){return e},e}function ah(){let e=(0,d._)(["\n ","\n position: absolute;\n z-index: 1;\n inset: 0;\n opacity: 0.33;\n"]);return ah=function(){return e},e}function ag(){let e=(0,d._)(["\n display: flex;\n flex: 0 0 auto;\n flex-direction: row;\n justify-content: space-between;\n align-items: end;\n gap: ",";\n width: 100%;\n overflow: hidden;\n &:empty {\n display: none;\n }\n"]);return ag=function(){return e},e}function af(){let e=(0,d._)(["\n display: flex;\n flex-direction: row;\n gap: ",";\n justify-content: space-between;\n width: 100%;\n"]);return af=function(){return e},e}function am(){let e=(0,d._)(["\n margin-left: auto;\n"]);return am=function(){return e},e}function ay(){let e=(0,d._)(["\n margin-top: calc("," * var(--typography-scale));\n display: flex;\n flex-flow: row nowrap;\n gap: calc("," * var(--typography-scale));\n"]);return ay=function(){return e},e}function ab(){let e=(0,d._)(["\n display: flex;\n align-items: baseline;\n gap: calc("," * var(--typography-scale));\n white-space: nowrap;\n"]);return ab=function(){return e},e}function ax(){let e=(0,d._)(["\n line-height: 1;\n font-weight: ",";\n color: var(--typography-chart-text-color, ",");\n"]);return ax=function(){return e},e}function aC(){let e=(0,d._)(["\n line-height: 1;\n opacity: 0.8;\n\n &:empty {\n display: none;\n }\n"]);return aC=function(){return e},e}function av(){let e=(0,d._)(["\n display: flex;\n flex-direction: column;\n"]);return av=function(){return e},e}function aj(){let e=(0,d._)(["\n white-space: nowrap;\n display: flex;\n flex-direction: row;\n align-items: center;\n gap: ",";\n color: var(--typography-chart-text-color, ",");\n"]);return aj=function(){return e},e}function aA(){let e=(0,d._)(["\n display: flex;\n justify-content: center;\n width: 1.2em;\n"]);return aA=function(){return e},e}function aw(){let e=(0,d._)(["\n font-weight: ",";\n line-height: 1.33;\n color: var(--typography-chart-text-color, ",");\n\n &:empty {\n display: none;\n }\n"]);return aw=function(){return e},e}function ak(){let e=(0,d._)(["\n user-select: none;\n display: flex;\n flex-direction: column;\n gap: ",";\n transition: opacity ",";\n opacity: ",";\n\n "," {\n font-size: ",";\n }\n\n "," {\n gap: ",";\n }\n\n "," {\n font-size: ",";\n }\n\n "," {\n font-size: ",";\n }\n"]);return ak=function(){return e},e}function aP(){let e=(0,d._)(["\n font-weight: ",";\n line-height: 1.33;\n opacity: 0.8;\n"]);return aP=function(){return e},e}function aS(){let e=(0,d._)(["\n display: flex;\n flex-direction: row;\n align-items: center;\n white-space: nowrap;\n gap: calc("," * var(--typography-scale));\n font-size: ",";\n"]);return aS=function(){return e},e}function aL(){let e=(0,d._)(["\n flex: 1 1 auto;\n min-width: 0;\n font-weight: ",";\n line-height: 1.1;\n opacity: 0.8;\n\n > span {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n max-width: 100%;\n }\n"]);return aL=function(){return e},e}function aM(){let e=(0,d._)(["\n width: calc(1.2em * var(--typography-scale));\n height: calc(1.2em * var(--typography-scale));\n background: ",";\n border-radius: 50%;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex: 0 0 auto;\n svg {\n width: calc(1.2em * var(--typography-scale));\n height: calc(1.2em * var(--typography-scale));\n }\n"]);return aM=function(){return e},e}function aO(){let e=(0,d._)(["\n display: inline-flex;\n align-items: center;\n gap: 0.4em;\n color: ",";\n\n "," {\n font-size: ",";\n }\n"]);return aO=function(){return e},e}function aT(){let e=(0,d._)(["\n display: flex;\n flex-direction: row;\n align-items: center;\n gap: ",";\n"]);return aT=function(){return e},e}function aD(){let e=(0,d._)(["\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n gap: ",";\n"]);return aD=function(){return e},e}function aI(){let e=(0,d._)(["\n inline-size: ",";\n block-size: ",";\n border: 1px solid ",";\n background-color: ",";\n border-radius: 9999px;\n"]);return aI=function(){return e},e}function az(){let e=(0,d._)(["\n ","\n max-inline-size: ",";\n"]);return az=function(){return e},e}function aE(){let e=(0,d._)(["\n pointer-events: none;\n overflow: visible;\n position: absolute;\n left: 0;\n top: 0;\n"]);return aE=function(){return e},e}function aH(){let e=(0,d._)(["\n fill: ",";\n"]);return aH=function(){return e},e}function aV(){let e=(0,d._)(["\n fill: ",";\n"]);return aV=function(){return e},e}function aF(){let e=(0,d._)(["\n ","\n fill: ",";\n"]);return aF=function(){return e},e}function aB(){let e=(0,d._)(["\n flex-grow: 1;\n position: relative;\n display: flex;\n flex-direction: column;\n font-family: var(--typography-chart-font-family);\n color: var(--typography-chart-text-color);\n"]);return aB=function(){return e},e}function aR(){let e=(0,d._)(["\n flex-grow: 1;\n display: flex;\n flex-direction: column;\n"]);return aR=function(){return e},e}function aY(){let e=(0,d._)(["\n flex: 1 1 0;\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n min-height: 0;\n"]);return aY=function(){return e},e}function aG(){let e=(0,d._)(["\n position: absolute;\n left: 50%;\n top: 100%;\n z-index: ",";\n"]);return aG=function(){return e},e}function aU(){let e=(0,d._)(["\n position: absolute;\n inset: 1px;\n overflow: hidden;\n pointer-events: none;\n\n &.transition rect {\n transition:\n width 0.2s ease-in-out,\n height 0.2s ease-in-out,\n x 0.2s ease-in-out,\n y 0.2s ease-in-out,\n rx 0.2s ease-in-out,\n stroke-width 0.2s ease-in-out;\n }\n\n @media (prefers-reduced-motion: reduce) {\n &.transition rect {\n transition: none;\n }\n }\n"]);return aU=function(){return e},e}function aW(){let e=(0,d._)(["\n width: 100%;\n height: 100%;\n transition: background 0.2s ease-in-out;\n"]);return aW=function(){return e},e}function aN(){let e=(0,d._)(["\n display: block;\n width: 100%;\n height: 100%;\n"]);return aN=function(){return e},e}function aK(){let e=(0,d._)(["\n display: flex;\n flex-direction: column;\n position: relative;\n gap: ",";\n"]);return aK=function(){return e},e}function aZ(){let e=(0,d._)(["\n background-color: ",";\n ","\n "]);return aZ=function(){return e},e}function aX(){let e=(0,d._)(["\n transition: background-color 0.2s ease-out;\n background-color: ",";\n "]);return aX=function(){return e},e}function a_(){let e=(0,d._)(["\n position: relative;\n border-radius: ",";\n color: var(--typography-chart-text-color, ",");\n ","\n"]);return a_=function(){return e},e}function aQ(){let e=(0,d._)(["\n transition: padding 0.2s ease-out;\n padding: ","px;\n overflow: ",";\n "]);return aQ=function(){return e},e}function aJ(){let e=(0,d._)(["\n "," {\n "," {\n box-shadow: 0 0 0 1px ",";\n }\n\n "," {\n box-shadow: 0 0 0 1px ",";\n }\n }\n "]);return aJ=function(){return e},e}function aq(){let e=(0,d._)(["\n outline: "," solid ",";\n "]);return aq=function(){return e},e}function a$(){let e=(0,d._)(["\n --text-editor-placeholder-color: transparent;\n "]);return a$=function(){return e},e}function a1(){let e=(0,d._)(["\n --typography-scale: ",";\n --typography-chart-font-family: ",";\n --typography-chart-text-color: ",";\n --typography-chart-heading-font-family: ",";\n --typography-chart-heading-text-color: ",";\n\n ","\n\n position: relative;\n width: 100%;\n height: 100%;\n &,\n "," {\n flex-grow: 1;\n display: flex;\n flex-direction: column;\n }\n "," {\n flex: 1 1 0;\n }\n "," {\n flex: 0 0 auto;\n }\n\n ","\n ","\n\n ","\n\n ","\n\n &:fullscreen {\n padding: min(",", 5vw);\n }\n"]);return a1=function(){return e},e}function a0(){let e=(0,d._)(["\n user-select: none;\n height: 100%;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: ",";\n padding: 0 ",";\n"]);return a0=function(){return e},e}function a2(){let e=(0,d._)(["\n ","\n color: ",";\n text-align: center;\n"]);return a2=function(){return e},e}function a5(){let e=(0,d._)(["\n ","\n color: ",";\n text-align: center;\n"]);return a5=function(){return e},e}function a3(){let e=(0,d._)(["\n ","\n display: flex;\n gap: ",";\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n color: ",";\n"]);return a3=function(){return e},e}function a7(){let e=(0,d._)(["\n ","\n"]);return a7=function(){return e},e}function a9(){let e=(0,d._)(["\n ","\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n"]);return a9=function(){return e},e}function a4(){let e=(0,d._)(["\n & > "," {\n ","\n }\n"]);return a4=function(){return e},e}function a6(){let e=(0,d._)(["\n .",":first-child {\n display: none;\n }\n "]);return a6=function(){return e},e}function a8(){let e=(0,d._)(["\n .",":not(:first-child) {\n display: none;\n }\n "]);return a8=function(){return e},e}function se(){let e=(0,d._)(["\n position: relative;\n font-family: var(--typography-chart-heading-font-family);\n color: var(--typography-chart-heading-text-color);\n h1 {\n ",";\n padding-right: ","px;\n }\n .is-empty {\n display: ",";\n }\n &:focus-within {\n background: ",";\n }\n ","\n ","\n"]);return se=function(){return e},e}function st(){let e=(0,d._)(["\n position: absolute;\n right: 0;\n top: 0;\n"]);return st=function(){return e},e}function sn(){let e=(0,d._)(["\n ",";\n color: var(--typography-chart-text-color, ",");\n"]);return sn=function(){return e},e}function sr(){let e=(0,d._)(["\n overflow: visible;\n pointer-events: none;\n"]);return sr=function(){return e},e}function si(){let e=(0,d._)(["\n fill: ",";\n"]);return si=function(){return e},e}function so(){let e=(0,d._)(["\n fill: ",";\n"]);return so=function(){return e},e}function sl(){let e=(0,d._)(["\n ","\n fill: ",";\n"]);return sl=function(){return e},e}function sa(){let e=(0,d._)(["\n fill: ",";\n"]);return sa=function(){return e},e}function ss(){let e=(0,d._)(["\n pointer-events: none;\n overflow: visible;\n position: absolute;\n z-index: ",";\n"]);return ss=function(){return e},e}n(29143);let su={light:300,regular:400,medium:500,semiBold:600,bold:700,black:900},sc=(0,p.AH)(tl(),su.medium),sd=(0,p.AH)(ta(),su.semiBold),sp=(0,p.AH)(ts(),su.medium),sh=(0,p.AH)(tu(),su.medium),sg=(0,p.AH)(tc(),su.medium),sf=(0,p.AH)(td(),su.medium),sm=(0,p.AH)(tp(),su.medium),sy=(0,p.AH)(th(),su.medium),sb=(0,p.AH)(tg(),su.semiBold),sx=(0,p.AH)(tf(),su.medium),sC=(0,p.AH)(tm(),su.medium),sv=(0,p.AH)(ty(),su.semiBold),sj=(0,p.AH)(tb(),su.light),sA=(0,p.AH)(tx(),su.medium),sw=(0,p.AH)(tC(),su.medium),sk=(0,p.AH)(tv(),su.medium),sP=(0,p.AH)(tj(),su.medium),sS=(0,p.AH)(tA(),su.regular),sL=(0,p.AH)(tw(),su.medium),sM=(0,p.AH)(tk(),su.regular),sO=(0,p.AH)(tP()),sT=(0,p.AH)(tS()),sD=(0,p.AH)(tL(),su.regular);var sI=Object.freeze({__proto__:null,axisLabel:sh,dataLabel:sy,differenceArrowLabelLarge:sv,differenceArrowLabelMedium:sC,differenceArrowLabelSmall:sx,goalLineValueLabel:sg,jumboTooltipLabel:sM,jumboTooltipValue:sL,legendItemLabel:sc,miniTooltipFooter:sD,miniTooltipLabel:sO,miniTooltipValue:sT,pieLabel:sj,seriesLabel:sd,stackTotal:sb,tickLabel:sp,tooltipCaption:sA,tooltipCaptionSmall:sw,tooltipFooter:sS,tooltipHeading:sP,tooltipLabel:sk,trendTag:sf,trendTagSmall:sm});let sz={xs:"0.2em",sm:"0.4em",md:"0.8em",lg:"1.2em",xl:"2em",max:"999999px"},sE={none:"0px 0px 0px rgba(15, 15, 24, 0), 0px 0px 0px rgba(14, 14, 52, 0)",xs:"0px 0px 2px rgba(15, 15, 24, 0.12), 0px 2px 2px rgba(14, 14, 52, 0.08)",sm:"0px 0px 4px rgba(15, 15, 24, 0.12), 0px 4px 4px rgba(14, 14, 52, 0.08)",md:"0px 0px 8px rgba(15, 15, 24, 0.12), 0px 8px 8px rgba(14, 14, 52, 0.08)",lg:"0px 0px 16px rgba(15, 15, 24, 0.12), 0px 16px 16px rgba(14, 14, 52, 0.08)"},sH=(e,t,n)=>(0,p.AH)(tM(),t,n?[n].flat().map(e=>e?"calc(".concat(sz[e]," - 1px)"):"0").join(" "):"0",e),sV=.8,sF=10,sB=100,sR={subtle:"100ms cubic-bezier(0.550, 0.085, 0.680, 0.530)"},sY="'Inter', -apple-system, BlinkMacSystemFont, 'Open Sans', 'Segoe UI', 'Roboto', 'Oxygen-Sans', 'Ubuntu',\n'Cantarell', 'Helvetica Neue', 'NotoSansArabic', 'NotoSansJP', 'NotoSansSC', 'NotoSansKR', 'NotoSerifKR', sans-serif, 'Apple Color Emoji', 'NotoColorEmoji'",sG="'Aeonik', 'Aeonik Fallback', ".concat(sY),sU={modern:sY,timeless:"'Noto Serif', Georgia, 'Times New Roman', serif, 'Apple Color Emoji', 'NotoColorEmoji'",fresh:sG,technical:"'PT Mono', 'Courier New', monospace, 'Apple Color Emoji', 'NotoColorEmoji'",fineliner:"'Intruding Cat', cursive, 'Apple Color Emoji', 'NotoColorEmoji'",brand:"var(--brand-font-family), ".concat(sG),handwritten:"'Permanent Marker', cursive, 'Apple Color Emoji', 'NotoColorEmoji'"},sW={titleLarge:"2.8em",titleMedium:"2.2em",titleSmall:"1.8em",titleSmaller:"1.4em",titleSmallest:"1.2em",body:"1.4em",bodyBold:"1.4em",bodyLink:"1.4em",bodyLarge:"1.6em",caption:"1.2em",captionLink:"1.2em",label:"1em",labelSmall:"0.9em",captionBody:"1.5em"},sN={titleLarge:1.29,titleMedium:1.41,titleSmall:1.25,titleSmaller:1.43,titleSmallest:1.42,body:1.43,bodyBold:1.43,bodyLink:1.43,bodyLarge:1.5,caption:1.33,captionLink:1.33,label:1.3,labelSmall:1.44,captionBody:1.47},sK={titleLarge:"bold",titleMedium:"bold",titleSmall:"semiBold",titleSmaller:"semiBold",titleSmallest:"semiBold",body:"medium",bodyBold:"bold",bodyLink:"regular",bodyLarge:"medium",caption:"medium",captionLink:"regular",label:"medium",labelSmall:"medium",captionBody:"medium"},sZ={titleLarge:null,titleMedium:null,titleSmall:null,titleSmaller:null,titleSmallest:null,body:null,bodyBold:null,bodyLink:"underline",bodyLarge:null,caption:null,captionLink:"underline",label:null,labelSmall:null,captionBody:null},sX="10px",s_={above:1,below:-1,stickyHeader:50,stickySidebar:52,vignette:51,toolbar:70,overlay:90,editorToolbar:299,editorToolbarPopover:298,drawer:100,popover:300,hint:310,modal:500,tooltip:550,toast:600,portalFactor:500,globalLoader:1e4},sQ={mobile:375,tablet:768,desktop:1200,largeScreen:2e3};function sJ(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function sq(e,t,n,r){if("a"===n&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function s$(e,t,n,r,i){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}"function"==typeof SuppressedError&&SuppressedError;let s1="symbol-dotted-pattern",s0="symbol-dotted-mask",s2=()=>(0,h.jsxs)("defs",{children:[(0,h.jsx)("pattern",{id:s1,patternUnits:"userSpaceOnUse",patternTransform:"rotate(90)",width:"10",height:"4",x:"0",y:"0",children:(0,h.jsx)("rect",{x:"0",y:"0",width:"10",height:"2",fill:"white"})}),(0,h.jsx)("mask",{id:s0,children:(0,h.jsx)("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:"url(#".concat(s1,")")})})]}),s5="symbol-hatch-pattern",s3="symbol-hatch-mask",s7=()=>(0,h.jsxs)("defs",{children:[(0,h.jsx)("pattern",{id:s5,patternUnits:"userSpaceOnUse",patternTransform:"rotate(-45)",width:"10",height:"3",x:"0",y:"0",children:(0,h.jsx)("rect",{x:"0",y:"0",width:"10",height:"2",fill:"white"})}),(0,h.jsx)("mask",{id:s3,children:(0,h.jsx)("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:"url(#".concat(s5,")")})})]}),s9={hatched:s3,dotted:s0},s4=e=>e?"url(#".concat(s9[e],")"):void 0,s6=e=>{var{symbol:t,fill:n,fillOpacity:r=1,pattern:i}=e,o=sJ(e,["symbol","fill","fillOpacity","pattern"]);return(0,h.jsx)(s8,Object.assign({symbol:t,pattern:i},o,{style:Object.assign({color:n,opacity:r},o.style)}))},s8=e=>{var{symbol:t,pattern:n}=e,r=sJ(e,["symbol","pattern"]);switch(t){case"bar":return(0,h.jsx)(ue,Object.assign({pattern:n},r));case"line":return(0,h.jsx)(ut,Object.assign({pattern:n},r));case"tile":return(0,h.jsx)(un,Object.assign({pattern:n},r));case"pie":return(0,h.jsx)(ur,Object.assign({pattern:n},r));case"donut":return(0,h.jsx)(ui,Object.assign({pattern:n},r));case"point":return(0,h.jsx)(uo,Object.assign({pattern:n},r))}},ue=e=>{var{pattern:t}=e,n=sJ(e,["pattern"]);return(0,h.jsxs)("svg",Object.assign({},n,{xmlns:"http://www.w3.org/2000/svg",style:Object.assign({width:"calc(12px * var(--typography-scale))",height:"calc(12px * var(--typography-scale))"},n.style),fill:"none",viewBox:"0 0 12 12",children:[(0,h.jsx)(s7,{}),(0,h.jsx)("rect",{width:"8",height:"10",x:"2",y:"1",fill:"currentColor",mask:s4(t),rx:"2"})]}))},ut=e=>{var{pattern:t}=e,n=sJ(e,["pattern"]);return(0,h.jsxs)("svg",Object.assign({},n,{xmlns:"http://www.w3.org/2000/svg",style:Object.assign({width:"calc(12px * var(--typography-scale))",height:"calc(12px * var(--typography-scale))"},n.style),fill:"none",viewBox:"0 0 12 12",children:[(0,h.jsx)(s2,{}),(0,h.jsx)(s7,{}),(0,h.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M1 6C1 5.44772 1.44772 5 2 5H10C10.5523 5 11 5.44772 11 6C11 6.55228 10.5523 7 10 7H2C1.44772 7 1 6.55228 1 6Z",clipRule:"evenodd",mask:s4(t)})]}))},un=e=>{var{pattern:t}=e,n=sJ(e,["pattern"]);return(0,h.jsxs)("svg",Object.assign({},n,{xmlns:"http://www.w3.org/2000/svg",style:Object.assign({width:"calc(12px * var(--typography-scale))",height:"calc(12px * var(--typography-scale))"},n.style),fill:"none",viewBox:"0 0 12 12",children:[(0,h.jsx)(s7,{}),(0,h.jsx)("rect",{width:"8",height:"10",x:"1",y:"10",fill:"currentColor",mask:s4(t),rx:"2",transform:"rotate(-90 1 10)"})]}))},ur=e=>{var{pattern:t}=e,n=sJ(e,["pattern"]);return(0,h.jsxs)("svg",Object.assign({},n,{xmlns:"http://www.w3.org/2000/svg",style:Object.assign({width:"calc(12px * var(--typography-scale))",height:"calc(12px * var(--typography-scale))"},n.style),fill:"none",viewBox:"0 0 12 12",children:[(0,h.jsx)(s7,{}),(0,h.jsx)("path",{fill:"currentColor",mask:s4(t),d:"M9.525 10.475c.552 0 1.006-.45.944-.998a9.003 9.003 0 00-7.946-7.946c-.549-.062-.998.392-.998.944v7a1 1 0 001 1h7z"})]}))},ui=e=>{var{pattern:t}=e,n=sJ(e,["pattern"]);return(0,h.jsxs)("svg",Object.assign({},n,{xmlns:"http://www.w3.org/2000/svg",style:Object.assign({width:"calc(12px * var(--typography-scale))",height:"calc(12px * var(--typography-scale))"},n.style),fill:"none",viewBox:"0 0 12 12",children:[(0,h.jsx)(s7,{}),(0,h.jsx)("path",{fill:"currentColor",mask:s4(t),d:"M9.525 10.475c.552 0 1.006-.45.944-.998a9.003 9.003 0 00-7.946-7.946c-.549-.062-.998.392-.998.944v2.25c0 .552.453.99.993 1.105A4.75 4.75 0 016.17 9.482c.116.54.553.993 1.105.993h2.25z"})]}))},uo=e=>{var{pattern:t}=e,n=sJ(e,["pattern"]);return(0,h.jsxs)("svg",Object.assign({},n,{xmlns:"http://www.w3.org/2000/svg",style:Object.assign({width:"calc(12px * var(--typography-scale))",height:"calc(12px * var(--typography-scale))"},n.style),fill:"none",viewBox:"0 0 12 12",children:[(0,h.jsx)(s7,{}),(0,h.jsx)("circle",{cx:6,cy:6,r:6,fill:"currentColor",mask:s4(t)})]}))},ul=12,ua={neutral:"inherit",positive:"#04F08E",negative:"#FF5C24"},us=p.I4.div(tO(),e=>{let{$size:t}=e;return"small"===t?sm:sf},e=>{let{$appearance:t}=e;return ua[t]}),uu=e=>{let{children:t,appearance:n="neutral",size:r="regular"}=e;return(0,h.jsx)(us,{"aria-label":"Trend",$appearance:n,$size:r,children:t})},uc="–",ud="n/a",up=e=>({plain:String(e),rich:String(e)});class uh{incrementYearIfNeeded(e){var t;null===sq(this,gw,"f")?s$(this,gw,e.getUTCFullYear(),"f"):null!==sq(this,gA,"f")&&(0,g.Y)(new Date((new Date).getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),new Date((new Date).getUTCFullYear(),sq(this,gA,"f").getUTCMonth(),sq(this,gA,"f").getUTCDate()))&&s$(this,gw,(t=sq(this,gw,"f"),++t),"f"),e.setUTCFullYear(sq(this,gw,"f")),s$(this,gA,e,"f")}constructor(){gA.set(this,null),gw.set(this,null)}}gA=new WeakMap,gw=new WeakMap;let ug=e=>"propertyKey"in e&&"rowIndex"in e,uf=e=>"highlight"===e.config.type,um=e=>"difference-arrow"===e.config.type,uy=e=>"tooltip"===e.config.type,ub={k:1e3,m:1e6,b:1e9},ux=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none";switch(t){case"none":return{base:e,suffix:""};case"auto":{let t=e>=ub.b?"b":e>=ub.m?"m":e>=ub.k?"k":"none";return ux(e,t)}default:return{base:e/ub[t],suffix:t}}},uC=e=>"--graphy-".concat((0,f.A)(e)),uv=e=>"var(".concat(uC(e),")"),uj=(e,t)=>"color-mix(in srgb, transparent, ".concat(e," ").concat(100*t,"%)"),uA=(e,t)=>"hsl(from ".concat(e," h s calc(l * ").concat(1-t,"))"),uw=(e,t)=>"hsl(from ".concat(e," h s calc(l * ").concat(1+t,"))"),uk=(e,t,n)=>"color-mix(in srgb, ".concat(e,", ").concat(t," ").concat(100*n,"%)"),uP=(e,t)=>"hsl(from ".concat(e," h calc(s - s * ").concat(t,") l)"),uS=e=>Object.entries(e.values).map(e=>{let[t,n]=e;return"".concat(uC(t),": ").concat(n,";")}).join("\n"),uL="[data-graphy-theme='dark'] &",uM="[data-graphy-theme='light'] &",uO=e=>"c".concat(e+1),uT=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign({key:(0,L.Ak)()},e)},uD=(e,t)=>()=>{let n=(0,M.useContext)(e);if(!n)throw Error("Unable to read context. ".concat(t," is missing."));return n},uI=O.z.enum(["count","distinct","max","min","sum","mean","mode","median"]),uz=O.z.enum(["year","quarter","month","week","day"]),uE=O.z.enum(["<","<=",">",">="]),uH=O.z.enum(["contains","does not contain"]),uV=O.z.enum(["===","!=="]),uF=O.z.literal("within last"),uB=O.z.union([uE,uH,uV]),uR=O.z.union([O.z.string(),O.z.number(),O.z.date()]),uY=O.z.object({key:O.z.string(),operator:uB,value:uR}),uG=O.z.object({key:O.z.string(),operator:uF,value:O.z.number(),timeUnit:uz}),uU=O.z.union([uY,uG]),uW=O.z.object({key:O.z.string(),originalKey:O.z.string(),isDerived:O.z.boolean().optional(),aggregation:uI.optional()}),uN=O.z.object({key:O.z.string(),timeUnit:uz.optional()}),uK=O.z.enum(["asc","desc"]),uZ=O.z.object({key:O.z.string(),direction:uK}),uX=O.z.union([O.z.literal(0),O.z.literal(1),O.z.literal(2),O.z.literal(3),O.z.literal(4),O.z.literal(5),O.z.literal(6)]),u_=O.z.object({groupBy:uN.optional(),sortBy:O.z.array(uZ).optional(),properties:O.z.array(uW),filters:O.z.array(uU).optional(),weekStartsOn:uX.optional()}),uQ=O.Ay.enum(["line","areaStacked","bar","barStacked","barStackedFill","column","columnStacked","columnStackedFill","combo","pie","donut","funnel","heatmap","scatter","bubble","waterfall","table","mekko"]),uJ=["bar","barStacked","barStackedFill"],uq=["column","columnStacked","columnStackedFill"],u$=["scatter","bubble"],u1=["pie","donut"],u0=O.Ay.enum(["linear","catmull-rom"]),u2=O.Ay.enum(["grouped-bars","stacked-bars","lines"]),u5=O.Ay.enum(["trendline","average"]),u3=O.Ay.enum(["goal","custom"]),u7=O.Ay.enum(["current","average","total","conversion"]),u9=O.Ay.enum(["tail","head","none"]),u4=O.Ay.enum(["auto","small","medium","large"]),u6=O.Ay.enum(["EN_GB","EN_US"]),u8="EN_GB",ce=O.Ay.enum(["top","right","none"]),ct=O.Ay.enum(["auto","edges"]),cn=O.Ay.enum(["single","double"]),cr=O.Ay.enum(["center","left"]),ci=O.Ay.enum(["linear","exponential","logarithmic","quadratic","power","loess","polynomial"]),co=O.Ay.enum(["empty","zero","fill"]),cl=O.Ay.enum(["line","bar"]),ca=O.Ay.object({key:O.Ay.string(),shape:cl.nullable().optional()}),cs=O.Ay.object({key:O.Ay.string()}),cu=O.Ay.object({mainAxisColumn:cs.nullable().optional(),crossAxisColumns:O.Ay.array(ca).nullable().optional(),sizeColumnKey:O.Ay.string().nullable().optional(),labelColumnKey:O.Ay.string().nullable().optional(),sliceColumnKey:O.Ay.string().nullable().optional()}),cc=O.Ay.object({type:uQ,comboPlotType:u2.optional(),topAxisLabel:O.Ay.string().nullish(),bottomAxisLabel:O.Ay.string().nullish(),leftAxisLabel:O.Ay.string().nullish(),rightAxisLabel:O.Ay.string().nullish(),presetPowerUp:u5.nullish(),customPowerUp:u3.nullish(),averageLineSeriesKey:O.Ay.string().nullish(),trendLineType:ci.optional(),headlineMetric:u7.nullish(),headlineMetricComparisonValue:u9.nullish(),headlineMetricSize:u4.optional(),xGoalValue:O.Ay.custom().nullish(),yGoalValue:O.Ay.number().nullish(),customGoalLineLabel:O.Ay.string().nullish(),customLineValue:O.Ay.number().nullish(),customLineLabel:O.Ay.string().nullish(),locale:u6.optional(),curveType:u0.optional(),pieTotalPosition:cr.nullish(),shouldStartFromZero:O.Ay.boolean().optional(),customYAxisStartFrom:O.Ay.number().nullable().optional(),customYAxisEndAt:O.Ay.number().nullable().optional(),useLogScale:O.Ay.boolean().optional(),hasGridLines:O.Ay.boolean().optional(),showStackTotals:O.Ay.boolean().optional(),showDataLabels:O.Ay.boolean().optional(),showPoints:O.Ay.boolean().optional(),showPercentageLabels:O.Ay.boolean().optional(),showCategoryLabels:O.Ay.boolean().optional(),comboPlotAxisCount:cn.optional(),sortBars:O.Ay.boolean().optional(),hideCrossAxis:O.Ay.boolean().optional(),hideMainAxis:O.Ay.boolean().optional(),yAxisLabelsMode:ct.optional(),xAxisLabelsMode:ct.optional(),reverseCrossAxisPosition:O.Ay.boolean().optional(),legendPosition:ce.nullish(),lineThickness:O.Ay.number().nullish(),pointSize:O.Ay.number().nullish(),treatEmptyValues:co.optional(),propertyMapping:cu.nullish()});!function(e){e.Aed="aed",e.Aud="aud",e.Bdt="bdt",e.Bhd="bhd",e.Brl="brl",e.Cad="cad",e.Chf="chf",e.Clp="clp",e.Cny="cny",e.Cop="cop",e.Czk="czk",e.Dkk="dkk",e.Egp="egp",e.Eur="eur",e.Gbp="gbp",e.Hkd="hkd",e.Huf="huf",e.Idr="idr",e.Ils="ils",e.Inr="inr",e.Jpy="jpy",e.Krw="krw",e.Kwd="kwd",e.Mxn="mxn",e.Myr="myr",e.Ngn="ngn",e.Nok="nok",e.Nzd="nzd",e.Php="php",e.Pkr="pkr",e.Pln="pln",e.Qar="qar",e.Ron="ron",e.Rub="rub",e.Sar="sar",e.Sek="sek",e.Sgd="sgd",e.Thb="thb",e.Try="try",e.Twd="twd",e.Usd="usd",e.Vnd="vnd",e.Zar="zar"}(gk||(gk={})),function(e){e.Currency="currency",e.Date="date",e.Datetime="datetime",e.Year="year",e.Quarter="quarter",e.MonthYear="month_year",e.Month="month",e.DayMonth="day_month",e.WeeklyDateRange="weekly_date_range",e.WeeklyDateRangeWithYear="weekly_date_range_with_year",e.Text="text",e.Boolean="boolean",e.Decimal="decimal",e.Duration="duration",e.Integer="integer",e.Percentage="percentage"}(gP||(gP={}));let cd=O.z.object({type:O.z.literal(gP.Currency),iso:O.z.nativeEnum(gk)}),cp=O.z.union([O.z.literal(gP.Date),O.z.literal(gP.Datetime),O.z.literal(gP.Year),O.z.literal(gP.MonthYear),O.z.literal(gP.Month),O.z.literal(gP.DayMonth),O.z.literal(gP.WeeklyDateRange),O.z.literal(gP.WeeklyDateRangeWithYear),O.z.literal(gP.Quarter)]),ch=O.z.object({type:cp,dateFormat:O.z.optional(O.z.string())}),cg=O.z.object({type:O.z.union([O.z.literal(gP.Text),O.z.literal(gP.Boolean),O.z.literal(gP.Decimal),O.z.literal(gP.Duration),O.z.literal(gP.Integer),O.z.literal(gP.Percentage)])}),cf=O.z.union([ch,cd,cg]),cm=e=>cp.safeParse(e.type).success,cy=e=>e.type===gP.Currency,cb=O.z.object({key:O.z.string(),label:O.z.string().optional(),dataType:cf.optional(),isHidden:O.z.boolean().optional(),aggregation:uI.optional()}),cx=O.z.object({timeUnit:uz,value:O.z.number()}),cC=O.z.object({properties:O.z.array(cb),isDataHorizontal:O.z.boolean(),shouldAggregate:O.z.boolean().optional(),groupByTimeUnit:uz.optional(),sortBy:uZ.optional(),rollingDateFilter:cx.nullish(),description:O.z.string().optional(),dateFormat:u6.optional()}),cv=e=>e===gP.Text,cj=e=>e===gP.Boolean,cA=e=>cp.safeParse(e).success,cw=e=>e===gP.Month||e===gP.DayMonth||e===gP.WeeklyDateRange,ck=e=>e===gP.Integer||e===gP.Decimal||e===gP.Percentage||e===gP.Duration||e===gP.Currency,cP=e=>ck(e)?"numeric":cA(e)?"date":"text",cS=[{label:"Last 7 days",timeUnit:"day",value:7},{label:"Last 30 days",timeUnit:"day",value:30},{label:"Last 90 days",timeUnit:"day",value:90}],cL=[{label:"Last 4 weeks",timeUnit:"week",value:4},{label:"Last 8 weeks",timeUnit:"week",value:8},{label:"Last 12 weeks",timeUnit:"week",value:12},{label:"Last 24 weeks",timeUnit:"week",value:24}],cM=[{label:"Last 3 months",timeUnit:"month",value:3},{label:"Last 6 months",timeUnit:"month",value:6},{label:"Last 12 months",timeUnit:"month",value:12}],cO={[gP.Date]:cS,[gP.Datetime]:cS,[gP.DayMonth]:cS,[gP.WeeklyDateRange]:cL,[gP.WeeklyDateRangeWithYear]:cL,[gP.Month]:cM,[gP.MonthYear]:cM,[gP.Quarter]:[{label:"Last 2 quarters",timeUnit:"quarter",value:2},{label:"Last 3 quarters",timeUnit:"quarter",value:3},{label:"Last 4 quarters",timeUnit:"quarter",value:4}],[gP.Year]:[{label:"Last 2 years",timeUnit:"year",value:2},{label:"Last 5 years",timeUnit:"year",value:5},{label:"Last 10 years",timeUnit:"year",value:10}]},cT=e=>cO[e],cD=(e,t)=>cA(e)&&cO[e].some(e=>e.timeUnit===t),cI={width:944,height:600},cz={bar:1500,barStacked:1500,barStackedFill:1500,column:1500,columnStacked:1500,columnStackedFill:1500,mekko:1500,line:4e3,areaStacked:4e3,combo:1500,heatmap:1e3,pie:1e3,donut:1e3,funnel:1e3,scatter:1500,bubble:1500,waterfall:1500,table:1/0},cE=O.Ay.preprocess(e=>{let t=String(e).replace(/\s+/g,"");return"#"!==t.charAt(0)?"#".concat(t):t},O.Ay.string().regex(/^#([\da-f]{3}|([\da-f]{2}){2,4})$/i)).describe("hex color. E.g #f00, #0000ff, #ff0099aa"),cH=O.Ay.enum(["solid","dashed","dotted"]),cV=O.Ay.enum(["solid","hatched"]),cF=O.Ay.object({color:cE.optional(),fillType:cV.optional(),lineType:cH.optional()}),cB=O.Ay.object({series1:cF.optional(),series2:cF.optional(),series3:cF.optional(),series4:cF.optional(),series5:cF.optional(),series6:cF.optional(),series7:cF.optional(),series8:cF.optional(),series9:cF.optional(),series10:cF.optional(),series11:cF.optional(),series12:cF.optional(),series13:cF.optional(),series14:cF.optional(),series15:cF.optional(),series16:cF.optional(),series17:cF.optional(),series18:cF.optional(),series19:cF.optional(),series20:cF.optional(),waterfallStart:cF.optional(),waterfallPositive:cF.optional(),waterfallNegative:cF.optional(),waterfallTotal:cF.optional()}),cR=O.Ay.enum(["series1","series2","series3","series4","series5","series6","series7","series8","series9","series10","series11","series12","series13","series14","series15","series16","series17","series18","series19","series20"]),cY=O.z.object({id:O.z.string().default(()=>crypto.randomUUID()),name:O.z.string(),seriesConfigs:O.z.array(cF).default([]),isDefault:O.z.boolean().default(!1).optional(),darkSeriesConfigs:O.z.array(cF).default([])}),cG=O.z.array(cY),cU=O.z.object({brandKitId:O.z.string(),seriesMappings:O.z.object({series1:O.z.number().optional(),series2:O.z.number().optional(),series3:O.z.number().optional(),series4:O.z.number().optional(),series5:O.z.number().optional(),series6:O.z.number().optional(),series7:O.z.number().optional(),series8:O.z.number().optional(),series9:O.z.number().optional(),series10:O.z.number().optional(),series11:O.z.number().optional(),series12:O.z.number().optional(),series13:O.z.number().optional(),series14:O.z.number().optional(),series15:O.z.number().optional(),series16:O.z.number().optional(),series17:O.z.number().optional(),series18:O.z.number().optional(),series19:O.z.number().optional(),series20:O.z.number().optional(),waterfallStart:O.z.number().optional(),waterfallPositive:O.z.number().optional(),waterfallNegative:O.z.number().optional(),waterfallTotal:O.z.number().optional()})}),cW=cB,cN=O.z.enum(["graphy","mono","pastel","neon","custom","brandKit","customPalette"]),cK=O.z.enum(["red","orange","yellow","green","cyan","blue","purple","dark_purple","plum","pink"]),cZ=O.z.enum(["neon_pink","lilac","blackberry","sun","iceland","sunset","ultraviolet","purple","ice_cream","mint","cool","fresh"]),cX=O.z.enum(["purple","plum","pink","red","orange","yellow","green","cyan","blue","dark_purple"]),c_=O.z.literal("graphy"),cQ=O.z.object({theme:cN.extract(["graphy"]),palette:c_}),cJ=O.z.enum(["green","cyan","blue","purple","plum","pink","red","orange","yellow"]),cq=O.z.enum(["green","cyan","blue","purple","plum","pink","red","orange","yellow"]),c$=O.z.literal("pastel"),c1=O.z.object({theme:cN.extract(["pastel"]),palette:c$}),c0=O.z.enum(["blue","cyan","green","yellow","orange","red","pink","purple","grey"]),c2=O.z.object({theme:cN.extract(["mono"]),palette:c0}),c5=c2,c3=O.z.enum(["cyan","pink","purple","red","orange","yellow","green","blue"]),c7=O.z.object({theme:cN.extract(["neon"]),palette:c3}),c9=c7,c4=O.z.enum(["start","positive","negative","total"]),c6=O.z.object({theme:cN.extract(["custom"]),palette:O.z.null()}),c8=O.z.object({theme:cN.extract(["brandKit"]),palette:O.z.null(),brandKitConfig:cU.optional()}),de=O.z.object({theme:cN.extract(["customPalette"]),palette:O.z.string().min(1)}),dt=O.z.union([cQ,c2,c1,c7]),dn=O.z.union([cQ,c5,c1,c9,c6,c8,de]),dr=O.z.enum(["0.8","1","1.2","1.4","1.6","1.8","2","2.5","3","4"]),di=O.z.enum(["grey","fade-color"]),dl=di.Values["fade-color"],da=O.z.enum(["modern","fresh","timeless","technical","fineliner","brand"]),ds=da.Values.modern,du=O.z.object({id:O.z.string(),label:O.z.string(),fontFamily:O.z.string()}),dc=O.z.array(du),dd=O.z.preprocess(e=>"string"==typeof e?{heading:{fontId:e},body:{fontId:e}}:e,O.z.object({heading:O.z.object({fontId:O.z.string().optional(),color:O.z.string().optional()}),body:O.z.object({fontId:O.z.string().optional(),color:O.z.string().optional()})})),dp=O.z.union([da,dd]),dh=O.z.union([cZ,cX,cq,c0]),dg={none:0,stroke:1,border:12},df=O.z.preprocess(e=>"none"===e?dg.none:"stroke"===e?dg.stroke:"border"===e?dg.border:e,O.z.number().min(0).max(64)),dm=O.z.enum(["none","gradient","solid","grey","preset","custom"]),dy=O.z.union([dh,cE]),db=O.z.enum(["none","gradient","solid","custom"]),dx=dn.and(O.z.object({seriesConfig:cB.optional(),textScale:dr.optional(),highlightStyle:di.optional(),shouldHideTitle:O.z.boolean().optional(),shouldHideSubtitle:O.z.boolean().optional(),shouldHideCaption:O.z.boolean().optional(),shouldHideSourceSection:O.z.boolean().optional(),shouldHideLogo:O.z.boolean().optional(),shouldTintBackground:O.z.boolean().optional(),hasRoundedCorners:O.z.boolean().optional(),disableTooltips:O.z.boolean().optional(),disableAnimation:O.z.boolean().optional(),font:dp.optional(),borderType:dm.optional(),borderStroke:df.optional(),borderColor:dy.optional(),borderStyle:db.nullish(),borderStyleName:dh.nullish(),customBorderStyle:cE.optional()})),dC=sU[ds],dv={timeless:{id:"timeless",label:"Timeless",fontFamily:da.enum.timeless},fresh:{id:"fresh",label:"Fresh",fontFamily:da.enum.fresh},modern:{id:"modern",label:"Modern",fontFamily:da.enum.modern},technical:{id:"technical",label:"Technical",fontFamily:da.enum.technical},fineliner:{id:"fineliner",label:"Fineliner",fontFamily:da.enum.fineliner},brand:{id:"brand",label:"Brand",fontFamily:da.enum.brand}},dj=[dv.modern,dv.fresh,dv.timeless,dv.technical,dv.fineliner,dv.brand],dA=[dv.modern,dv.fresh,dv.timeless,dv.technical],dw=[dv.modern,dv.fresh,dv.timeless,dv.technical,dv.fineliner],dk=e=>e?e in sU?sU[e]:e:dC,dP=e=>{var t,n;return e?"string"==typeof e?{heading:{fontId:e},body:{fontId:e}}:{heading:null!=(t=e.heading)?t:{fontId:ds},body:null!=(n=e.body)?n:{fontId:ds}}:{heading:{fontId:ds},body:{fontId:ds}}};!function(e){e.LOW="low",e.MEDIUM="medium",e.HIGH="high"}(gS||(gS={}));let dS="unknown.error";class dL extends Error{static toUnknownError(e,t){return e instanceof dL?(e.info=(0,m.A)(e.info,t),e):e instanceof Error?new dL(dS,"Unexpected error",e,t):new dL(dS,"Unexpected error",void 0,Object.assign(Object.assign({},t),{details:JSON.stringify(e)}))}toString(){return"".concat(this.name,": ").concat(this.message)}constructor(e,t,n,r){super(),this.code=e,this.message=t,this.cause=n,this.info=r,this.isReported=!1,this.name=this.constructor.name,this.info=Object.assign(Object.assign({},n instanceof dL&&(null==n?void 0:n.info)),r),this.message=function(e,t){return t instanceof Error?"".concat(e,"\nCaused by: ").concat(t.message):e}(this.message,this.cause),this.stack=function(e,t){return t instanceof Error?"".concat(e,"\nCause stack: ").concat(t.stack):e}(this.stack,this.cause)}}let dM=e=>e instanceof Error&&"code"in e,dO="__WATERFALL_TOTAL__",dT=e=>{let{rowIndex:t,propertyKey:n}=e;return n===dO?dO:"".concat(t,":").concat(n)},dD=e=>{if(e===dO)return{rowIndex:0,propertyKey:dO};let[t,n]=e.split(":"),r=t?Number.parseInt(t):NaN;if(!Number.isNaN(r)&&n)return{rowIndex:r,propertyKey:n};throw new dL("parse-data-point-id.error","Unable to parse data point",void 0,{dataPointId:e})},dI=e=>({borderColor:"transparent"===e?"rgba(0,0,0,0.1)":uA(e,.1),fillColor:e});function dz(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y",r="x"===n?"overflowX":"overflowY",i=window.getComputedStyle(e);return[i[r],i.overflow].some(e=>/auto|scroll/.test(e))?e:e.parentElement?dz(e.parentElement,n):null!=(t=document.scrollingElement)?t:document.documentElement}let dE=["/","-","."," "],dH=[["d","M","yy"],["d","MM","yy"],["d","MMMM","yy"],["dd","M","yy"],["dd","MM","yy"],["dd","MMMM","yy"],["do","MMMM","yy"],["d","M","yyyy"],["d","MM","yyyy"],["d","MMMM","yyyy"],["dd","M","yyyy"],["dd","MM","yyyy"],["dd","MMMM","yyyy"],["do","MMMM","yyyy"]],dV=[["M","d","yy"],["M","dd","yy"],["MM","d","yy"],["MM","dd","yy"],["MMMM","d","yy"],["MMMM","dd","yy"],["MMMM","do","yy"],["M","d","yyyy"],["M","dd","yyyy"],["MM","d","yyyy"],["MM","dd","yyyy"],["MMMM","d","yyyy"],["MMMM","dd","yyyy"],["MMMM","do","yyyy"]],dF=[["yyyy","M","d"],["yyyy","M","dd"],["yyyy","MM","d"],["yyyy","MM","dd"],["yyyy","MMMM","d"],["yyyy","MMMM","dd"],["yyyy","MMMM","do"]],dB=[["d","MMMM"],["dd","MMMM"],["do","MMMM"],["MMMM","d"],["MMMM","dd"],["MMMM","do"]],dR=[{dateFormat:"MMMM d, yyyy",type:gP.Date},{dateFormat:"MMMM dd, yyyy",type:gP.Date},{dateFormat:"MMMM do, yyyy",type:gP.Date},{dateFormat:"yyyy-MM",type:gP.MonthYear}],dY=e=>[...dR,...Object.entries({[gP.Date]:[..."EN_US"===e?[...dV,...dH]:[...dH,...dV],...dF],[gP.Year]:[["yyyy"]],[gP.DayMonth]:dB,[gP.MonthYear]:[["MMMM","yyyy"],["yyyy","MMMM"]],[gP.Month]:[["MMMM"]],[gP.Quarter]:[["QQQ","yyyy"],["yyyy","QQQ"]]}).flatMap(e=>{let[t,n]=e;return n.flatMap(e=>dE.map(n=>({dateFormat:e.join(n),type:t})))})],dG=e=>Object.entries({[gP.WeeklyDateRange]:dB,[gP.WeeklyDateRangeWithYear]:[..."EN_US"===e?[...dV,...dH]:[...dH,...dV],...dF]}).flatMap(e=>{let[t,n]=e;return n.flatMap(e=>dE.map(n=>({dateFormat:e.join(n),type:t})))}),dU=/^-?(\d{1,3}(,\d{3})*|\d+).?\d*(k|m|b|t)?$/i,dW=e=>!(e instanceof Date)&&!Array.isArray(e)&&"boolean"!=typeof e&&("string"==typeof e?dU.test(e)&&!Number.isNaN(Number(e.replace(/[,kmbt]/gi,""))):!Number.isNaN(Number(e))),dN=/^\d{4}-\d{2}-\d{2}(T|\s)\d{1,2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|\+00:00)?$/,dK=e=>dN.test(e.trim()),dZ=[[/\bJan\b/i,"January"],[/\bFeb\b/i,"February"],[/\bMar\b/i,"March"],[/\bApr\b/i,"April"],[/\bJun\b/i,"June"],[/\bJul\b/i,"July"],[/\bAug\b/i,"August"],[/\bSept?\b/i,"September"],[/\bOct\b/i,"October"],[/\bNov\b/i,"November"],[/\bDec\b/i,"December"]],dX=e=>{if("string"==typeof e){let t=e;for(let[e,n]of dZ)t=t.replace(e,n);return t}return e},d_=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"EN_GB",n=dX(e);return dK(n)?{type:gP.Datetime}:dY(t).find(e=>{let{dateFormat:t,type:r}=e;return!(r===gP.Month&&n.length<3)&&t&&(0,D.f)((0,z.qg)(n,t,new Date))})},dQ=(e,t)=>{let n=dX(e);return!t&&dW(n)?(0,y.A)(Number(n)):"string"==typeof n?t?(0,D.f)((0,z.qg)(n,t,new Date)):!!d_(n)||dK(n)&&(0,D.f)(new Date(n)):(0,D.f)(n)},dJ=/\s*[–—]\s*|\s-\s/,dq=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"EN_GB",[n,r]=e.split(dJ);if(!n||!r)return;let i=dX(n).trim(),o=dX(r).trim();return dG(t).find(e=>{let{dateFormat:t}=e;if(!t)return!1;let n=(0,z.qg)(i,t,new Date),r=(0,z.qg)(o,t,new Date);if(!(0,D.f)(n)||!(0,D.f)(r))return!1;let l=new uh;l.incrementYearIfNeeded(n),l.incrementYearIfNeeded(r);let a=(0,T.c)(r,n);return!(!(0,I.v)(new Date(n.getFullYear(),1,28),{start:n,end:r})||5!==a)||6===a})},d$=(e,t)=>!!(e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,t)),d1=(e,t)=>d$(e,t)&&"string"==typeof e[t],d0=e=>"x"in e&&"y"in e&&"yValue"in e,d2=e=>"highlight"in e&&"value"in e&&"label"in e&&"color"in e,d5=O.Ay.union([O.Ay.string(),O.Ay.number(),O.Ay.null()]),d3=O.Ay.intersection(O.Ay.record(d5),O.Ay.object({__graphyExternalId__:O.Ay.string().optional()})),d7=O.Ay.array(d3),d9=O.z.any(),d4=O.z.preprocess(e=>{if("object"!=typeof e||null===e)return e;let t=e=>{var n;if("object"!=typeof e||null===e)return e;let r=Object.assign({},e);return"marks"in e&&(r.marks=Array.isArray(n=e.marks)?n.map(e=>{if("object"==typeof e&&null!==e&&"type"in e&&"textStyle"===e.type&&"attrs"in e&&"object"==typeof e.attrs&&null!==e.attrs&&"font"in e.attrs&&"string"==typeof e.attrs.font){let t=e.attrs.font;return Object.assign(Object.assign({},e),{attrs:Object.assign(Object.assign({},e.attrs),{font:{id:t,label:t,fontFamily:t}})})}return e}):n),"content"in e&&Array.isArray(e.content)&&(r.content=e.content.map(e=>t(e))),r};return t(e)},d9),d6=O.z.object({id:O.z.string()}),d8=O.z.object({rowIndex:O.z.number(),propertyKey:O.z.string(),rowValue:d5.optional()}),pe=O.z.enum(["rectangle"]),pt=O.z.object({type:O.z.literal("shape"),shape:pe,x:O.z.number(),y:O.z.number(),width:O.z.number(),height:O.z.number(),fillColor:O.z.string(),fillOpacity:O.z.number(),strokeWidth:O.z.number(),order:O.z.enum(["below","above"])}),pn=d6.extend({config:pt}),pr=O.z.enum(["rocket","clapping-hands","thumbs-up","thumbs-down","grinning-face"]),pi=O.z.object({type:O.z.literal("sticker"),id:pr}),po=d6.extend({config:pi}).merge(d8),pl=O.z.object({type:O.z.literal("tooltip"),caption:d4.optional()}),pa=d6.extend({config:pl}).merge(d8),ps=O.z.enum(["data-point","series","x-value"]),pu=O.z.object({type:O.z.literal("highlight"),highlight:ps}),pc=d6.extend({config:pu}).merge(d8),pd=O.z.enum(["fade","opaque"]),pp=O.z.object({type:O.z.literal("text"),dimensions:O.z.object({x:O.z.number(),y:O.z.number(),width:O.z.number()}),backgroundColor:O.z.string().optional(),backgroundColorStyle:pd.optional(),content:d4}),ph=d6.extend({config:pp}),pg=O.z.enum(["line-arrow","none"]),pf=O.z.enum(["thin","medium","thick"]),pm=O.z.enum(["solid","dashed"]),py=O.z.object({color:O.z.string().nullable(),thickness:pf.default("medium"),startArrowheadStyle:pg.default("none"),lineStyle:pm.default("solid"),endArrowheadStyle:pg.default("line-arrow"),stickerStyle:O.z.boolean().default(!1)}),pb=O.z.object({type:O.z.literal("arrow"),start:O.z.object({x:O.z.number(),y:O.z.number()}),end:O.z.object({x:O.z.number(),y:O.z.number()}),attributes:py}),px=d6.extend({config:pb}),pC=O.z.enum(["absolute-difference","relative-difference","proportion"]),pv=O.z.enum(["small","medium","large"]),pj=O.z.object({type:pC.default("relative-difference"),color:O.z.string().nullable().default(null),size:pv.default("small"),labelCrossPosition:O.z.number().optional()}),pA=O.z.object({type:O.z.literal("difference-arrow"),start:d8,end:d8,attributes:pj.default({})}),pw=d6.extend({config:pA}),pk=O.z.discriminatedUnion("type",[pi,pl,pu,pp,pb,pA,pt]),pP=O.z.union([O.z.literal("sticker"),O.z.literal("tooltip"),O.z.literal("highlight"),O.z.literal("text"),O.z.literal("arrow"),O.z.literal("difference-arrow"),O.z.literal("shape")]),pS=O.z.union([po,pa,pc,ph,px,pw,pn]),pL=O.z.array(pS),pM=e=>null!==e,pO=O.z.enum(["auto"]).or(O.z.number().min(0).max(5)),pT=O.z.enum(["none","auto","k","m","b"]),pD=O.z.object({decimalPlaces:pO,abbreviation:pT}),pI=e=>e.length>0,pz=O.z.object({id:O.z.string().min(1),hex:O.z.string().regex(/^#(?:[0-9a-fA-F]{3}){1,2}$/),name:O.z.string().optional()}),pE=O.z.object({id:O.z.string(),name:O.z.string().min(1),colors:O.z.array(pz).min(1)}),pH=O.z.array(pE),pV={$:gk.Usd,"\xa3":gk.Gbp,"€":gk.Eur,"\xa5":gk.Jpy,"₹":gk.Inr,"₱":gk.Php,P:gk.Php,"₩":gk.Krw,"₪":gk.Ils,"₫":gk.Vnd,"₽":gk.Rub,"฿":gk.Thb,R$:gk.Brl,Rp:gk.Idr,RM:gk.Myr,"₦":gk.Ngn,zł:gk.Pln,"₺":gk.Try,kr:gk.Dkk,Fr:gk.Chf,R:gk.Zar,"د.إ":gk.Aed,"﷼":gk.Sar,Ch$:gk.Clp,NT$:gk.Twd,HK$:gk.Hkd,S$:gk.Sgd,A$:gk.Aud,C$:gk.Cad,NZ$:gk.Nzd,MX$:gk.Mxn},pF=e=>{let t=Object.keys(pV).sort((e,t)=>t.length-e.length).find(t=>e.includes(t)),n=e;if(t){let r=e.indexOf(t);0===r?n=e.slice(t.length):r===e.length-t.length?n=e.slice(0,e.length-t.length):"-"===e[0]&&1===r&&(n="-".concat(e.slice(t.length+1)))}return dU.test(n)?n.split(",").join(""):""},pB=e=>{if("string"==typeof e){let t=pF(e);return!!t.length&&dW(t)}return dW(e)},pR=/^-?\d{1,3}(?:,\d{3})*(?:\.\d+)?%?$/,pY=e=>!!dW(e)||"string"==typeof e&&pR.test(e),pG=(e,t)=>{let n="string"==typeof e?e.trim():e;if(dW(n))return{type:gP.Decimal};if((e=>"boolean"==typeof e||!(!dW(e)||![0,1].includes(Number(e)))||"string"==typeof e&&["true","false"].includes(e.toLowerCase()))(n))return{type:gP.Boolean};let r="string"==typeof n&&d_(n,t);return r||"string"==typeof n&&dq(n,t)||(dQ(n)?{type:gP.Date}:pY(n)?{type:gP.Percentage}:pB(n)&&"string"==typeof n?{type:gP.Currency,iso:(e=>{let t=Object.keys(pV).sort((e,t)=>t.length-e.length).find(t=>e.includes(t)),n=t?pV[t]:void 0;if(!n)throw Error("Could not get currency ISO");return n})(n)}:{type:gP.Text})},pU=e=>"string"==typeof e&&""===e.trim()||null==e||"-"===e,pW=e=>{let{rows:t,properties:n}=e,r=n.every(e=>""===e.label)||0===n.length,i=t.every(e=>0===Object.keys(e).length)||0===t.length;return r&&i};function pN(){let{title:e,subtitle:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:"doc",content:[Object.assign({type:"heading",attrs:{level:3}},e&&{content:[{type:"text",text:e}]}),...t?[{type:"paragraph",content:[{type:"text",text:t}]}]:[]]}}let pK=()=>[],pZ=()=>({isDataHorizontal:!1,properties:[]}),pX={type:"bar",bottomAxisLabel:null,leftAxisLabel:null,rightAxisLabel:null,curveType:"linear",topAxisLabel:null,hasGridLines:!0,presetPowerUp:null,customPowerUp:null,xGoalValue:null,yGoalValue:null,shouldStartFromZero:!1,useLogScale:!1,showStackTotals:!1,hideCrossAxis:!1,hideMainAxis:!1,showDataLabels:!1,showPercentageLabels:!1,showPoints:!1,headlineMetric:null,headlineMetricComparisonValue:"head",headlineMetricSize:"auto",averageLineSeriesKey:null,locale:u8,comboPlotType:"grouped-bars",sortBars:!1,customGoalLineLabel:null,customLineValue:null,customLineLabel:null,reverseCrossAxisPosition:!1,trendLineType:"linear",pieTotalPosition:null,customYAxisStartFrom:null,customYAxisEndAt:null,showCategoryLabels:!1,comboPlotAxisCount:"double",legendPosition:null,lineThickness:null,pointSize:null,treatEmptyValues:"empty",yAxisLabelsMode:"auto",xAxisLabelsMode:"auto",propertyMapping:null},p_=[...uJ,...uq,"line","areaStacked","combo","funnel","scatter","bubble","waterfall","mekko"],pQ=[...uJ,...uq,...u1,"funnel","heatmap","mekko"],pJ=["line","areaStacked","scatter"],pq=["line","areaStacked"],p$=e=>{let t=Object.assign({},pX),n=Object.assign(Object.assign({},t),e);"barStacked"===n.type&&(t.showPercentageLabels=!0),["line","areaStacked"].includes(n.type)&&(t.shouldStartFromZero=!0),u1.includes(n.type)&&(t.showDataLabels=!0,t.showPercentageLabels=!0),"funnel"===n.type&&(t.showDataLabels=!0,t.headlineMetric="conversion"),"combo"===n.type&&(t.curveType="catmull-rom",t.comboPlotAxisCount="double"),"heatmap"===n.type&&(t.showDataLabels=!0,t.showPercentageLabels=!0);let r=Object.assign(Object.assign({},t),e);return pJ.includes(r.type)||(r.customYAxisStartFrom=null),!0===r.useLogScale&&(r.shouldStartFromZero=!1,r.customYAxisStartFrom=null),(r.shouldStartFromZero||"number"==typeof r.customYAxisStartFrom)&&(r.useLogScale=!1),"areaStacked"===r.type&&"fill"===r.treatEmptyValues&&(r.treatEmptyValues="zero"),"mekko"===r.type&&(r.treatEmptyValues="zero"),pQ.includes(r.type)||(r.showPercentageLabels=!1),p_.includes(r.type)||(r.hideCrossAxis=!1,r.hideMainAxis=!1),pq.includes(r.type)||(r.useLogScale=!1),r},p1=e=>p$(Object.assign(Object.assign({},e),{type:"column"})),p0=e=>p$(Object.assign(Object.assign({},e),{type:"barStacked"})),p2=e=>p$(Object.assign(Object.assign({},e),{type:"barStackedFill"})),p5=e=>p$(Object.assign(Object.assign({},e),{type:"column"})),p3=e=>p$(Object.assign(Object.assign({},e),{type:"line"})),p7=e=>p$(Object.assign(Object.assign({},e),{type:"pie"})),p9=e=>p$(Object.assign(Object.assign({},e),{type:"donut"})),p4=e=>p$(Object.assign(Object.assign({},e),{type:"funnel"})),p6=e=>p$(Object.assign(Object.assign({},e),{type:"combo"})),p8=e=>p$(Object.assign(Object.assign({},e),{type:"heatmap"})),he=e=>p$(Object.assign(Object.assign({},e),{type:"table"})),ht=e=>p$(Object.assign(Object.assign({},e),{type:"scatter"})),hn=e=>p$(Object.assign(Object.assign({},e),{type:"bubble"})),hr=e=>p$(Object.assign(Object.assign({},e),{type:"waterfall"})),hi=p5,ho={titleDocument:pN({title:"Untitled"}),datasetConfig:{isDataHorizontal:!1,properties:[]},data:[],config:hi()},hl={titleDocument:pN({title:"Example pie chart"}),config:p7(),datasetConfig:(0,m.A)({isDataHorizontal:!1,properties:[]},{isDataHorizontal:!1,properties:[{key:uO(0),label:"Category"},{key:uO(1),label:"Value"}]}),data:[{[uO(0)]:"Headcount",[uO(1)]:"$38,456"},{[uO(0)]:"Legal",[uO(1)]:"$4,578"},{[uO(0)]:"Marketing",[uO(1)]:"$9,456"},{[uO(0)]:"Office",[uO(1)]:"$12,986"}]},ha=Object.assign(Object.assign({},hl),{config:Object.assign(Object.assign({},hl.config),{type:"donut"})}),hs={titleDocument:pN({title:"Example line chart"}),config:p3(),datasetConfig:(0,m.A)({isDataHorizontal:!1,properties:[]},{isDataHorizontal:!1,properties:[{key:uO(0),label:"Month"},{key:uO(1),label:"Series 1"},{key:uO(2),label:"Series 2"}]}),data:[{[uO(0)]:"Jan",[uO(1)]:"1467",[uO(2)]:"2456"},{[uO(0)]:"Feb",[uO(1)]:"1857",[uO(2)]:"2649"},{[uO(0)]:"Mar",[uO(1)]:"2485",[uO(2)]:"2987"},{[uO(0)]:"Apr",[uO(1)]:"3456",[uO(2)]:"3256"},{[uO(0)]:"May",[uO(1)]:"4789",[uO(2)]:"4895"},{[uO(0)]:"Jun",[uO(1)]:"5431",[uO(2)]:"5781"},{[uO(0)]:"Jul",[uO(1)]:"4576",[uO(2)]:"6548"},{[uO(0)]:"Aug",[uO(1)]:"3899",[uO(2)]:"5344"},{[uO(0)]:"Sep",[uO(1)]:"3476",[uO(2)]:"4883"},{[uO(0)]:"Oct",[uO(1)]:"4235",[uO(2)]:"4561"},{[uO(0)]:"Nov",[uO(1)]:"3256",[uO(2)]:"4127"},{[uO(0)]:"Dec",[uO(1)]:"2153",[uO(2)]:"3854"}]},hu=Object.assign(Object.assign({},hs),{config:Object.assign(Object.assign({},hs.config),{type:"areaStacked"})}),hc={titleDocument:pN({title:"Example scatter chart"}),config:ht(),datasetConfig:(0,m.A)({isDataHorizontal:!1,properties:[]},{isDataHorizontal:!1,properties:[{key:uO(1),label:"Series 1"},{key:uO(2),label:"Series 2"}]}),data:[{[uO(1)]:"1467",[uO(2)]:"2456"},{[uO(1)]:"1857",[uO(2)]:"2649"},{[uO(1)]:"2485",[uO(2)]:"2987"},{[uO(1)]:"3456",[uO(2)]:"3256"},{[uO(1)]:"4789",[uO(2)]:"4895"},{[uO(1)]:"5431",[uO(2)]:"5781"},{[uO(1)]:"4576",[uO(2)]:"6548"},{[uO(1)]:"3899",[uO(2)]:"5344"},{[uO(1)]:"3476",[uO(2)]:"4883"},{[uO(1)]:"4235",[uO(2)]:"4561"},{[uO(1)]:"3256",[uO(2)]:"4127"},{[uO(1)]:"2153",[uO(2)]:"3854"}]},hd={titleDocument:pN({title:"Example bubble chart"}),config:hn(),datasetConfig:(0,m.A)({isDataHorizontal:!1,properties:[]},{isDataHorizontal:!1,properties:[{key:uO(1),label:"Series 1"},{key:uO(2),label:"Series 2"},{key:uO(3),label:"Series 3"}]}),data:[{[uO(1)]:"1467",[uO(2)]:"2456",[uO(3)]:"10"},{[uO(1)]:"1857",[uO(2)]:"2649",[uO(3)]:"10"},{[uO(1)]:"2485",[uO(2)]:"2987",[uO(3)]:"10"},{[uO(1)]:"3456",[uO(2)]:"3256",[uO(3)]:"10"},{[uO(1)]:"4789",[uO(2)]:"4895",[uO(3)]:"10"},{[uO(1)]:"5431",[uO(2)]:"5781",[uO(3)]:"10"},{[uO(1)]:"4576",[uO(2)]:"6548",[uO(3)]:"10"},{[uO(1)]:"3899",[uO(2)]:"5344",[uO(3)]:"10"},{[uO(1)]:"3476",[uO(2)]:"4883",[uO(3)]:"10"},{[uO(1)]:"4235",[uO(2)]:"4561",[uO(3)]:"10"},{[uO(1)]:"3256",[uO(2)]:"4127",[uO(3)]:"10"},{[uO(1)]:"2153",[uO(2)]:"3854",[uO(3)]:"10"}]},hp={titleDocument:pN({title:"Example mekko chart"}),config:p$(Object.assign(Object.assign({},gL),{type:"mekko"})),datasetConfig:(0,m.A)({isDataHorizontal:!1,properties:[]},{isDataHorizontal:!1,properties:[{key:uO(1),label:"Category"},{key:uO(2),label:"Group A"},{key:uO(3),label:"Group B"},{key:uO(4),label:"Group C"},{key:uO(5),label:"Group D"}]}),data:[{[uO(1)]:"Category A",[uO(2)]:"15",[uO(3)]:"30",[uO(4)]:"40",[uO(5)]:"30"},{[uO(1)]:"Category B",[uO(2)]:"55",[uO(3)]:"30",[uO(4)]:"40",[uO(5)]:"15"},{[uO(1)]:"Category C",[uO(2)]:"30",[uO(3)]:"20",[uO(4)]:"25",[uO(5)]:"25"},{[uO(1)]:"Category D",[uO(2)]:"15",[uO(3)]:"15",[uO(4)]:"8",[uO(5)]:"12"}]},hh={titleDocument:pN({title:"Example waterfall chart"}),config:hr(),datasetConfig:(0,m.A)({isDataHorizontal:!1,properties:[]},{isDataHorizontal:!1,properties:[{key:uO(0),label:"Label"},{key:uO(1),label:"Value"}]}),data:[{[uO(0)]:"Product revenue",[uO(1)]:"420000"},{[uO(0)]:"Services revenue",[uO(1)]:"210000"},{[uO(0)]:"Fixed costs",[uO(1)]:"-170000"},{[uO(0)]:"Variable costs",[uO(1)]:"-140000"}]},hg={titleDocument:pN({title:"Example column chart"}),config:hi(),datasetConfig:(0,m.A)({isDataHorizontal:!1,properties:[]},{isDataHorizontal:!1,properties:[{key:uO(0),label:"Month"},{key:uO(1),label:"Category 1"},{key:uO(2),label:"Category 2"}]}),data:[{[uO(0)]:"Jul",[uO(1)]:"1467",[uO(2)]:"2456"},{[uO(0)]:"Aug",[uO(1)]:"1857",[uO(2)]:"2649"},{[uO(0)]:"Sep",[uO(1)]:"2485",[uO(2)]:"2987"},{[uO(0)]:"Oct",[uO(1)]:"3456",[uO(2)]:"3256"},{[uO(0)]:"Nov",[uO(1)]:"4789",[uO(2)]:"4895"},{[uO(0)]:"Dec",[uO(1)]:"5431",[uO(2)]:"5781"}]},hf=Object.assign(Object.assign({},hg),{config:Object.assign(Object.assign({},hg.config),{type:"columnStacked"})}),hm=Object.assign(Object.assign({},hg),{config:Object.assign(Object.assign({},hg.config),{type:"columnStackedFill"})}),hy=Object.assign(Object.assign({},hg),{titleDocument:pN({title:"Example bar chart"}),config:Object.assign(Object.assign({},hg.config),{type:"bar"})}),hb=Object.assign(Object.assign({},hy),{config:Object.assign(Object.assign({},hg.config),{type:"barStacked"})}),hx=Object.assign(Object.assign({},hy),{config:Object.assign(Object.assign({},hg.config),{type:"barStackedFill"})}),hC={titleDocument:pN({title:"Example funnel"}),config:p4(),datasetConfig:(0,m.A)({isDataHorizontal:!1,properties:[]},{isDataHorizontal:!1,properties:[{key:uO(0),label:"Stage"},{key:uO(1),label:"Users"}]}),data:[{[uO(0)]:"Acquisition",[uO(1)]:"22000"},{[uO(0)]:"Activation",[uO(1)]:"7542"},{[uO(0)]:"Retention",[uO(1)]:"3472"},{[uO(0)]:"Referral",[uO(1)]:"1467"},{[uO(0)]:"Revenue",[uO(1)]:"500"}]},hv={titleDocument:pN({title:"Example combo chart"}),config:p6({comboPlotType:"grouped-bars"}),datasetConfig:(0,m.A)({isDataHorizontal:!1,properties:[]},{isDataHorizontal:!1,properties:[{key:uO(0),label:"Month"},{key:uO(1),label:"Bar series"},{key:uO(2),label:"Line series"}]}),data:[{[uO(0)]:"Jan",[uO(1)]:"1467",[uO(2)]:"9.8%"},{[uO(0)]:"Feb",[uO(1)]:"1857",[uO(2)]:"10.0%"},{[uO(0)]:"Mar",[uO(1)]:"2485",[uO(2)]:"10.3%"},{[uO(0)]:"Apr",[uO(1)]:"3456",[uO(2)]:"12.3%"},{[uO(0)]:"May",[uO(1)]:"4789",[uO(2)]:"16.7%"},{[uO(0)]:"Jun",[uO(1)]:"4431",[uO(2)]:"13.4%"},{[uO(0)]:"Jul",[uO(1)]:"4576",[uO(2)]:"14.8%"},{[uO(0)]:"Aug",[uO(1)]:"3899",[uO(2)]:"16.1%"},{[uO(0)]:"Sep",[uO(1)]:"3476",[uO(2)]:"20.7%"},{[uO(0)]:"Oct",[uO(1)]:"4235",[uO(2)]:"20.1%"},{[uO(0)]:"Nov",[uO(1)]:"6256",[uO(2)]:"24.9%"},{[uO(0)]:"Dec",[uO(1)]:"7153",[uO(2)]:"25.3%"}]},hj={titleDocument:pN({title:"Example combo chart"}),config:p6({comboPlotType:"stacked-bars"}),datasetConfig:(0,m.A)({isDataHorizontal:!1,properties:[]},{isDataHorizontal:!1,properties:[{key:uO(0),label:"Month"},{key:uO(1),label:"Bar series 1"},{key:uO(2),label:"Bar series 2"},{key:uO(3),label:"Line series"}]}),data:[{[uO(0)]:"Jan",[uO(1)]:"1467",[uO(2)]:"2435",[uO(3)]:"9.8%"},{[uO(0)]:"Feb",[uO(1)]:"1857",[uO(2)]:"1467",[uO(3)]:"10.0%"},{[uO(0)]:"Mar",[uO(1)]:"2485",[uO(2)]:"1857",[uO(3)]:"10.3%"},{[uO(0)]:"Apr",[uO(1)]:"3456",[uO(2)]:"2485",[uO(3)]:"12.3%"},{[uO(0)]:"May",[uO(1)]:"4789",[uO(2)]:"3456",[uO(3)]:"16.7%"},{[uO(0)]:"Jun",[uO(1)]:"4431",[uO(2)]:"4789",[uO(3)]:"13.4%"},{[uO(0)]:"Jul",[uO(1)]:"4576",[uO(2)]:"4431",[uO(3)]:"14.8%"},{[uO(0)]:"Aug",[uO(1)]:"3899",[uO(2)]:"4576",[uO(3)]:"16.1%"},{[uO(0)]:"Sep",[uO(1)]:"3476",[uO(2)]:"3899",[uO(3)]:"20.7%"},{[uO(0)]:"Oct",[uO(1)]:"4235",[uO(2)]:"3476",[uO(3)]:"20.1%"},{[uO(0)]:"Nov",[uO(1)]:"6256",[uO(2)]:"4235",[uO(3)]:"24.9%"},{[uO(0)]:"Dec",[uO(1)]:"7153",[uO(2)]:"6256",[uO(3)]:"25.3%"}]},hA={titleDocument:pN({title:"Example combo chart"}),config:p6({comboPlotType:"lines"}),datasetConfig:(0,m.A)({isDataHorizontal:!1,properties:[]},{isDataHorizontal:!1,properties:[{key:uO(0),label:"Month"},{key:uO(1),label:"Line series 1"},{key:uO(2),label:"Line series 2"}]}),data:[{[uO(0)]:"Jan",[uO(1)]:"1467",[uO(2)]:"9.8%"},{[uO(0)]:"Feb",[uO(1)]:"1857",[uO(2)]:"10.0%"},{[uO(0)]:"Mar",[uO(1)]:"2485",[uO(2)]:"10.3%"},{[uO(0)]:"Apr",[uO(1)]:"3456",[uO(2)]:"12.3%"},{[uO(0)]:"May",[uO(1)]:"4789",[uO(2)]:"16.7%"},{[uO(0)]:"Jun",[uO(1)]:"4431",[uO(2)]:"13.4%"},{[uO(0)]:"Jul",[uO(1)]:"4576",[uO(2)]:"14.8%"},{[uO(0)]:"Aug",[uO(1)]:"3899",[uO(2)]:"16.1%"},{[uO(0)]:"Sep",[uO(1)]:"3476",[uO(2)]:"20.7%"},{[uO(0)]:"Oct",[uO(1)]:"4235",[uO(2)]:"20.1%"},{[uO(0)]:"Nov",[uO(1)]:"6256",[uO(2)]:"24.9%"},{[uO(0)]:"Dec",[uO(1)]:"7153",[uO(2)]:"25.3%"}]},hw={titleDocument:pN({title:"Example heatmap"}),config:p8(),datasetConfig:(0,m.A)({isDataHorizontal:!1,properties:[]},{isDataHorizontal:!0,properties:[{key:uO(0),label:""},{key:uO(1),label:"Cohort 1"},{key:uO(2),label:"Cohort 2"},{key:uO(3),label:"Cohort 3"},{key:uO(4),label:"Cohort 4"},{key:uO(5),label:"Cohort 5"},{key:uO(6),label:"Cohort 6"},{key:uO(7),label:"Cohort 7"},{key:uO(8),label:"Cohort 8"}]}),data:[{[uO(0)]:"Week 1",[uO(1)]:"86%",[uO(2)]:"82%",[uO(3)]:"85%",[uO(4)]:"80%",[uO(5)]:"88%",[uO(6)]:"85%",[uO(7)]:"83%",[uO(8)]:"85%"},{[uO(0)]:"Week 2",[uO(1)]:"70%",[uO(2)]:"71%",[uO(3)]:"73%",[uO(4)]:"73%",[uO(5)]:"72%",[uO(6)]:"78%",[uO(7)]:"79%",[uO(8)]:"77%"},{[uO(0)]:"Week 3",[uO(1)]:"66%",[uO(2)]:"65%",[uO(3)]:"64%",[uO(4)]:"61%",[uO(5)]:"64%",[uO(6)]:"67%",[uO(7)]:"70%",[uO(8)]:"60%"},{[uO(0)]:"Week 4",[uO(1)]:"59%",[uO(2)]:"59%",[uO(3)]:"60%",[uO(4)]:"50%",[uO(5)]:"50%",[uO(6)]:"57%",[uO(7)]:"59%",[uO(8)]:"54%"},{[uO(0)]:"Week 5",[uO(1)]:"49%",[uO(2)]:"44%",[uO(3)]:"49%",[uO(4)]:"46%",[uO(5)]:"41%",[uO(6)]:"41%",[uO(7)]:"47%",[uO(8)]:"43%"},{[uO(0)]:"Week 6",[uO(1)]:"41%",[uO(2)]:"40%",[uO(3)]:"50%",[uO(4)]:"50%",[uO(5)]:"45%",[uO(6)]:"47%",[uO(7)]:"44%",[uO(8)]:"40%"},{[uO(0)]:"Week 7",[uO(1)]:"46%",[uO(2)]:"48%",[uO(3)]:"48%",[uO(4)]:"44%",[uO(5)]:"49%",[uO(6)]:"40%",[uO(7)]:"47%",[uO(8)]:"46%"},{[uO(0)]:"Week 8",[uO(1)]:"48%",[uO(2)]:"44%",[uO(3)]:"41%",[uO(4)]:"43%",[uO(5)]:"50%",[uO(6)]:"43%",[uO(7)]:"49%",[uO(8)]:"50%"}]},hk=Object.assign(Object.assign({},hy),{config:he(),titleDocument:pN({title:"Example table"})}),hP=[hy,hg,hb,hx,hg,hf,hm,hs,hu,hl,ha,hC,hv,hj,hA,hw,hk,hc,hd,hh,hp],hS=(e,t)=>hP.some(n=>(0,b.A)({data:e,properties:t},{data:n.data,properties:n.datasetConfig.properties})),hL=(e,t)=>{var n,r;return hM(e,t)>(null!=(r=cz[null!=(n=t.type)?n:"line"])?r:1/0)},hM=(e,t)=>{var n,r,i,o;if(!t.type)return e.length;switch(t.type){case"bar":case"barStacked":case"barStackedFill":case"column":case"columnStacked":case"columnStackedFill":case"line":case"areaStacked":case"combo":case"scatter":case"mekko":case"heatmap":case"bubble":case"funnel":case"waterfall":return e.length*(null!=(r=null==(n=t.yAxisProperties)?void 0:n.length)?r:1);case"pie":case"donut":default:return e.length;case"table":return e.length*(null!=(o=null==(i=t.columns)?void 0:i.length)?o:1)}},hO=e=>{let t=Object.entries(e);return!t.length||!t.some(e=>{let[t,n]=e;return!pU(n)&&"__graphyExternalId__"!==t})},hT=e=>!hO(e),hD=()=>"undefined"!=typeof navigator&&navigator.maxTouchPoints>0,hI=e=>"pie"!==e.type&&"donut"!==e.type&&"table"!==e.type,hz=e=>"pie"===e.type||"donut"===e.type,hE=e=>"pie"!==e.type&&"donut"!==e.type&&"table"!==e.type,hH=e=>"pie"===e.type||"donut"===e.type,hV=e=>{var t,n,r;if(![...uJ,...uq].includes(e.type)||!1===hE(e)||1!==e.yAxisProperties.length)return!1;let i=null==(r=null==(n=null==(t=e.xAxisProperties)?void 0:t[0])?void 0:n.dataType)?void 0:r.type;return!!i&&!cA(i)&&!ck(i)},hF=[["day",[gP.Datetime]],["week",[gP.Date,gP.DayMonth]],["month",[gP.WeeklyDateRange,gP.WeeklyDateRangeWithYear]],["quarter",[gP.Month,gP.MonthYear]],["year",[gP.Quarter]]],hB=(e,t)=>{let n=hF.findIndex(t=>{let[n]=t;return n===e}),r=hF.findIndex(e=>{let[,n]=e;return n.includes(t)});if(-1===n)throw Error("Invalid time unit: ".concat(e));return -1!==r&&n>=r},hR=(e,t)=>{let{bottom:n,top:r,left:i,right:o}=e.getBoundingClientRect(),l=(t||document.body).getBoundingClientRect();return r>=l.top&&i>=l.left&&n<=l.bottom&&o<=l.right};function hY(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,i=2*e*Math.PI-Math.PI/2;return{x:n+t*Math.cos(i),y:r+t*Math.sin(i)}}let hG=e=>Math.round(10*e),hU=(e,t,n)=>{if(!n)return e;let r=t.map(e=>e[n]),i=!1,o=e.map(e=>{if(ug(e)){let t=((e,t)=>{if(void 0===e.rowValue||t[e.rowIndex]===e.rowValue)return e;let n=t.indexOf(e.rowValue);if(-1===n){let n=t[e.rowIndex];return void 0!==n?Object.assign(Object.assign({},e),{rowValue:n}):e}return Object.assign(Object.assign({},e),{rowIndex:n})})(e,r);if(t!==e)return i=!0,t}return e});return i?o:e},hW=(0,p.AH)(tT(),sX),hN=(0,p.i7)(tD()),hK=(0,p.AH)(tI(),uv("grey70"),hN),hZ=(0,p.AH)(tz(),uv("grey70"),hN),hX=e=>Math.round(.8*e*10),h_=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return"".concat((.8*e).toFixed(1),"em")},hQ=e=>{var t;let n=null!=(t=window.devicePixelRatio)?t:1;return Math.round(e*n)/n},hJ=(e,t)=>{switch(t){case"day":return gP.Date;case"week":return gP.WeeklyDateRange;case"month":return cw(e)?gP.Month:gP.MonthYear;case"quarter":return gP.Quarter;case"year":return gP.Year}},hq=function(e,t){var n;let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,i=e.length-1;for(let o=i;o>r;o--){let r=e[o];if((null==(n=r.label)?void 0:n.trim())||t.some(e=>!pU(e[r.key])))break;i=o-1}return i===e.length-1?e:e.slice(0,i+1)},h$=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,n=e.length-1;for(let r=n;r>t&&hO(e[r]);r--)n=r-1;return n===e.length-1?e:e.slice(0,n+1)},h1=(e,t,n)=>{var r;let i=null==(r=e[0])?void 0:r.key;t=h$(t);let o=i?Array.from({length:t.length+1},(n,r)=>{var o,l,a;return uT({label:0===r?null==(o=e[0])?void 0:o.label:null==(a=null==(l=t[r-1])?void 0:l[i])?void 0:a.toString()})}):[],l=Array.from({length:e.length-1},(n,r)=>Object.fromEntries(o.map((n,i)=>{var o,l,a,s,u;let c;if(0===i)c=null!=(l=null==(o=e[r+1])?void 0:o.label)?l:null;else{let n=null==(a=e[r+1])?void 0:a.key;c=n&&null!=(u=null==(s=t[i-1])?void 0:s[n])?u:null}return[n.key,c]}))),a=n.reduce((t,n)=>{var r;if(!ug(n))return t.push(n),t;let i=e.findIndex(e=>e.key===n.propertyKey)-1,l=null==(r=o[n.rowIndex+1])?void 0:r.key;return i>=0&&l&&t.push(Object.assign(Object.assign({},n),{propertyKey:l,rowIndex:i})),t},[]);return l=h$(l),{properties:o=hq(o,l),data:l,annotations:a}},h0=(0,p.AH)(tE()),h2=()=>{let{innerWidth:e}=window;return e{let t={isMobile:!1,isTablet:!1,isDesktop:!1,isLargeScreen:!1};switch(e){case"mobile":return Object.assign(Object.assign({},t),{isMobile:!0});case"tablet":return Object.assign(Object.assign({},t),{isTablet:!0});case"desktop":return Object.assign(Object.assign({},t),{isDesktop:!0});case"largeScreen":return Object.assign(Object.assign({},t),{isLargeScreen:!0})}},h3=()=>{let e=(0,M.useRef)(h2()),[t,n]=(0,M.useState)(()=>h5(e.current));return(0,M.useEffect)(()=>{let t=()=>{let t=h2();t!==e.current&&(e.current=t,n(h5(t)))};return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}},[]),t},h7={textPrimary:uv("white"),textSecondary:uj(uv("textPrimary"),.8),textDisabled:uj(uv("textPrimary"),.5),border100:uv("grey0"),border10:uj(uv("grey0"),.1),brand:uv("purple50"),success:uv("green50"),warning:uv("amber50"),alert:uv("red50"),sunkenBackground:uv("grey100"),defaultBackground:uv("grey90"),raisedBackground:uv("grey80"),overlayBackground:uv("grey90"),overlayBorderGradient:uv("greyGradient80")},h9={graphBackground:uv("grey100"),gridLineColor:uv("border10"),hoverGuideLineColor:uv("grey0"),originLineColor:uv("grey0"),targetLineColor:uv("border100"),targetLineMarkerColor:uv("border100"),legendBackground:uv("defaultBackground"),legendBorderColor:uj(uv("grey0"),.1),legendTextColor:uv("textPrimary"),dimmedSeriesLabelTextColor:uv("textDisabled"),dimmedSeriesLabelLineColor:uv("grey60"),trendNegativeColor:uv("red60"),trendPositiveColor:uv("green60"),tooltipBackground:uv("grey70"),tooltipBorderColor:uv("grey60"),tooltipHeadingTextColor:uv("textPrimary"),tooltipLabelTextColor:uv("textSecondary"),tooltipValueTextColor:uv("textPrimary"),graphTypeIconAccentColor:uv("purple30"),heatmapEmptyTileBackground:uv("grey80"),stackedBarHoverBorderColor:uv("grey0"),defaultArrowAnnotationColor:uv("white"),annotationFrameBorderColor:uv("blue60"),annotationMenuTriggerIconColor:uv("white")},h4={id:"dark",colorScheme:"dark",values:Object.assign(Object.assign(Object.assign(Object.assign({},{transparent:"transparent",white:"#ffffff",black:"#000000",grey100:"#000000",grey95:"#0D0D0D",grey90:"#1A1A1A",grey85:"#1F1F1F",grey80:"#2A2A2A",grey75:"#2e2e2e",grey70:"#353535",grey60:"#494949",grey50:"#6F6F6F",grey0:"#ffffff",red60:"#CB3333",red50:"#F93939",amber70:"#f48135",amber50:"#FEAE47",amber40:"#FFC849",amber30:"#ffd061",green60:"#0AC600",green50:"#42CD69",blue80:"#2E62FF",blue60:"#3D70FF",purple50:"#7B56EA",purple30:"#E093FE"}),{greyGradient80:"linear-gradient(to top, #222429, #31353f)"}),h7),h9),canvasColors:[{id:"default",label:"White",value:"#FFFFFF"},{id:"blue",label:"Blue",value:"#60a5fa"},{id:"cyan",label:"Cyan",value:"#22d3ee"},{id:"green",label:"Green",value:"#34d399"},{id:"yellow",label:"Yellow",value:"#FFC800"},{id:"orange",label:"Orange",value:"#fb923c"},{id:"red",label:"Red",value:"#f87171"},{id:"pink",label:"Pink",value:"#F979D9"},{id:"purple",label:"Purple",value:"#a78bfa"},{id:"gray",label:"Gray",value:"#a8a29e"},{id:"inverse",label:"Black",value:"#000000"}],defaultAnnotationColorIds:{arrowStroke:"black",shapeFill:"blue"}},h6={textPrimary:uv("black"),textSecondary:uj(uv("textPrimary"),.6),textDisabled:uj(uv("textPrimary"),.5),brand:uv("purple50"),success:uv("green50"),warning:uv("amber50"),alert:uv("red50"),border100:uv("grey0"),border10:uj(uv("grey0"),.1),sunkenBackground:uv("grey90"),defaultBackground:uv("grey100"),raisedBackground:uv("grey85"),overlayBackground:uv("grey100"),overlayBorderGradient:"none"},h8={graphBackground:uv("grey100"),gridLineColor:uv("border10"),hoverGuideLineColor:uv("grey0"),originLineColor:uv("grey0"),targetLineColor:uv("border100"),targetLineMarkerColor:"#A0A6C5",legendBackground:uv("defaultBackground"),legendBorderColor:uv("border10"),legendTextColor:uv("textPrimary"),dimmedSeriesLabelTextColor:uv("textDisabled"),dimmedSeriesLabelLineColor:uv("grey60"),trendNegativeColor:uv("red60"),trendPositiveColor:uv("green60"),tooltipBackground:"#333",tooltipBorderColor:"#47474B",tooltipHeadingTextColor:"#fff",tooltipLabelTextColor:"#d5d6d9",tooltipValueTextColor:"#fff",graphTypeIconAccentColor:uv("amber70"),heatmapEmptyTileBackground:uv("grey80"),stackedBarHoverBorderColor:uv("grey0"),defaultArrowAnnotationColor:uv("black"),annotationFrameBorderColor:uv("blue60"),annotationMenuTriggerIconColor:"#3d414c"},ge={id:"light",colorScheme:"light",values:Object.assign(Object.assign(Object.assign(Object.assign({},{transparent:"transparent",white:"#ffffff",black:"#000000",grey100:"#FFFFFF",grey95:"#FCFCFC",grey90:"#FAFAFA",grey85:"#F5F5F5",grey80:"#F0F0F0",grey75:"#e8e8e8",grey70:"#E5E5E5",grey60:"#CCCCCC",grey50:"#C4C4C4",grey0:"#1D2129",red60:"#E14B49",red50:"#F93939",amber70:"#FFBA8C",amber50:"#FFC849",amber40:"#FEAE47",amber30:"#e7a816",green60:"#06B299",green50:"#42CD69",blue80:"#2E62FF",blue60:"#3D70FF",purple50:"#7B56EA",purple30:"#E093FE"}),{greyGradient80:"linear-gradient(to top, #F0F0F1, #F9F9FF)"}),h6),h8),canvasColors:[{id:"default",label:"Black",value:"#000000"},{id:"blue",label:"Blue",value:"#3b82f6"},{id:"cyan",label:"Cyan",value:"#06b6d4"},{id:"green",label:"Green",value:"#10b981"},{id:"yellow",label:"Yellow",value:"#E5B400"},{id:"orange",label:"Orange",value:"#f97316"},{id:"red",label:"Red",value:"#ef4444"},{id:"pink",label:"Pink",value:"#E845BF"},{id:"purple",label:"Purple",value:"#8b5cf6"},{id:"gray",label:"Gray",value:"#78716c"},{id:"inverse",label:"White",value:"#ffffff"}],defaultAnnotationColorIds:{arrowStroke:"black",shapeFill:"blue"}},gt={TINT:{light:.1,dark:.1},GRADIENT:{light:.1,dark:.1}},gn=(e,t)=>{let n=gt.TINT[t],r="dark"===t?(0,E.e$)(e,n):(0,E.a)(e,n);return(0,E.nj)(r).toUpperCase()},gr=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:90,r=gt.GRADIENT[t],i="dark"===t?(0,E.e$)(e,r):(0,E.a)(e,r);return{original:e,from:(0,E.nj)(e).toUpperCase(),to:(0,E.nj)(i).toUpperCase(),gradient:"linear-gradient(".concat(n,"deg, ").concat(e," 0%, ").concat(i," 100%)")}},gi={red:"#E83562",orange:"#F38650",yellow:"#FBBC30",green:"#31FCB4",cyan:"#40F8FF",blue:"#279EFF",purple:"#B399FD",dark_purple:"#6D48D2",plum:"#C82184",pink:"#FC8497"},go={green:"#B2DDC9",cyan:"#A2D5E2",blue:"#AAC4FF",purple:"#B2A4FF",plum:"#DCA8C7",pink:"#FFCCD3",red:"#FFADAD",orange:"#FFDEB4",yellow:"#FDF7C3"},gl={grey900:"#1c1917",grey800:"#292524",grey700:"#44403c",grey600:"#57534e",grey500:"#78716c",grey400:"#a8a29e",grey300:"#d6d3d1",grey200:"#e7e5e4",grey100:"#f5f5f4",grey50:"#fafaf9",red900:"#7f1d1d",red800:"#991b1b",red700:"#b91c1c",red600:"#dc2626",red500:"#ef4444",red400:"#f87171",red300:"#fca5a5",red200:"#fecaca",red100:"#fee2e2",red50:"#fef2f2",orange900:"#7c2d12",orange800:"#9a3412",orange700:"#c2410c",orange600:"#ea580c",orange500:"#f97316",orange400:"#fb923c",orange300:"#fdba74",orange200:"#fed7aa",orange100:"#ffedd5",orange50:"#fff7ed",yellow900:"#553B0C",yellow800:"#6F4B08",yellow700:"#8D6300",yellow600:"#BD8A00",yellow500:"#E5B400",yellow400:"#FFC800",yellow300:"#FBDA2B",yellow200:"#FEED72",yellow100:"#FEF8B4",yellow50:"#FEFCE2",green900:"#064e3b",green800:"#065f46",green700:"#047857",green600:"#059669",green500:"#10b981",green400:"#34d399",green300:"#6ee7b7",green200:"#a7f3d0",green100:"#d1fae5",green50:"#ecfdf5",cyan900:"#164e63",cyan800:"#155e75",cyan700:"#0e7490",cyan600:"#0891B2",cyan500:"#06b6d4",cyan400:"#22d3ee",cyan300:"#67e8f9",cyan200:"#a5f3fc",cyan100:"#cffafe",cyan50:"#ecfeff",blue900:"#1e3a8a",blue800:"#1e40af",blue700:"#1d4ed8",blue600:"#2563eb",blue500:"#3b82f6",blue400:"#60a5fa",blue300:"#93c5fd",blue200:"#bfdbfe",blue100:"#dbeafe",blue50:"#eff6ff",purple900:"#4c1d95",purple800:"#5b21b6",purple700:"#6d28d9",purple600:"#7c3aed",purple500:"#8b5cf6",purple400:"#a78bfa",purple300:"#c4b5fd",purple200:"#ddd6fe",purple100:"#ede9fe",purple50:"#f5f3ff",pink900:"#751A5E",pink800:"#8F1972",pink700:"#AF1C8A",pink600:"#D326A8",pink500:"#E845BF",pink400:"#F979D9",pink300:"#FCABE8",pink200:"#FED0F3",pink100:"#FFE8F9",pink50:"#FFF4FC"},ga={cyan:"#22D3EE",pink:"#F377EF",purple:"#6528F7",red:"#FB2576",orange:"#FF9300",yellow:"#FBFF00",green:"#06FF00",blue:"#0079FF"},gs=[gi.purple,gi.pink,gi.yellow,gi.blue,gi.red,gi.cyan,gi.orange,gi.plum,gi.green,gi.dark_purple],gu=[go.green,go.purple,go.red,go.cyan,go.pink,go.blue,go.orange,go.plum,go.yellow],gc=[ga.cyan,ga.pink,ga.purple,ga.red,ga.orange,ga.yellow,ga.green,ga.blue],gd=["#84D1FC","#84FC89","#FC8497","#84D1FC"],gp=[gl.grey200,go.green,go.red,gl.grey200],gh=[ga.cyan,ga.green,ga.red,ga.cyan],gg=gi.purple,gf=["series1","series2","series3","series4","series5","series6","series7","series8","series9","series10","series11","series12","series13","series14","series15","series16","series17","series18","series19","series20"],gm=["waterfallStart","waterfallPositive","waterfallNegative","waterfallTotal"],gy=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n="waterfall"===t?gm:gf,r=n.map(t=>{var n;return null==(n=e[t])?void 0:n.color}).filter(e=>!!e);return 0===r.length?"waterfall"===t?gd:gs:n.map((e,t)=>r[t%r.length])},gb=e=>e.startsWith("waterfall")?gd[Math.max(gm.findIndex(t=>t===e),0)]:gs[Math.max(gf.findIndex(t=>t===e),0)],gx=e=>{let t=cE.safeParse(e.borderColor);return t.success?t.data:gg},gC=e=>{switch(e){case"waterfallStart":return"Start";case"waterfallPositive":return"Positive";case"waterfallNegative":return"Negative";case"waterfallTotal":return"Total";default:return e}},gv={lilac:{backgroundImage:"linear-gradient(94deg, #C9C0F7 -2.94%, #F6E6FD 92.51%)"},neon_pink:{backgroundImage:"linear-gradient(93deg, #E04A95 2.61%, #FD7F92 97.51%)"},blackberry:{backgroundImage:"linear-gradient(132deg, #9F9FED 2.98%, #B9E6FF 97.65%)"},sun:{backgroundImage:"linear-gradient(139deg, #FCDB61 5.51%, #FB9C65 97.21%)"},iceland:{backgroundImage:"linear-gradient(94deg, #29CDA8 -2.94%, #52C9D2 92.51%)"},sunset:{backgroundImage:"linear-gradient(138deg, #FCDB62 5.77%, #FD8091 99.91%)"},ultraviolet:{backgroundImage:"linear-gradient(132deg, #D167D8 2.98%, #6584E6 97.65%)"},purple:{backgroundImage:"linear-gradient(203.63deg, #BBADFD 15.22%, #BE9AF0 81.52%)"},ice_cream:{backgroundImage:"linear-gradient(119.34deg, #FC7E91 3.68%, #FCD1B1 116.76%)"},mint:{backgroundImage:"linear-gradient(93.55deg, #25CDA5 -6.07%, #58C8D8 113.6%)"},cool:{backgroundImage:"linear-gradient(93.55deg, #3F8EEB -6.07%, #58C8D8 113.6%)"},fresh:{backgroundImage:"linear-gradient(114.37deg, #A4A4EE 4.32%, #58C8D8 87.71%)"}},gj=e=>{var t;let{colorScheme:n="dark",borderType:r,borderColor:i,theme:o,seriesConfig:l}=e;if(r===dm.enum.grey)return{backgroundColor:"dark"===n?h4.values.grey70:ge.values.grey70};if(!i)return null;if(i.startsWith("#")){if(r===dm.enum.solid)return{backgroundColor:gn(i,n)};if(r===dm.enum.custom)return{backgroundColor:i}}if(r===dm.enum.preset&&Object.keys(gv).includes(i))return gv[i];if(r===dm.enum.gradient&&i.startsWith("#")){let{gradient:e}=gr(i,n);return{backgroundImage:e}}if(l&&i in l){let e=null==(t=l[i])?void 0:t.color;if(e)return{backgroundColor:e}}if(!i.startsWith("#")){if(Object.keys(gv).includes(i))return gv[i];if("graphy"===o&&Object.keys(gi).includes(i)||"mono"===o&&Object.keys(gi).includes(i))return{backgroundColor:gi[i]};if("pastel"===o&&Object.keys(go).includes(i))return{backgroundColor:go[i]}}return{backgroundColor:gg}};var gA,gw,gk,gP,gS,gL,gM,gO={exports:{}},gT={},gD=(r||(r=1,gM||(gM=1,function(e){function t(e,t){var n=e.length;for(e.push(t);0>>1,o=e[r];if(!(0>>1;ri(s,n))ui(c,s)?(e[r]=c,e[u]=n,r=u):(e[r]=s,e[a]=n,r=a);else{if(!(ui(c,n)))break;e[r]=c,e[u]=n,r=u}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var o=performance;e.unstable_now=function(){return o.now()}}else{var l=Date,a=l.now();e.unstable_now=function(){return l.now()-a}}var s=[],u=[],c=1,d=null,p=3,h=!1,g=!1,f=!1,m="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function x(e){for(var i=n(u);null!==i;){if(null===i.callback)r(u);else{if(!(i.startTime<=e))break;r(u),i.sortIndex=i.expirationTime,t(s,i)}i=n(u)}}function C(e){if(f=!1,x(e),!g)if(null!==n(s))g=!0,D(v);else{var t=n(u);null!==t&&I(C,t.startTime-e)}}function v(t,i){g=!1,f&&(f=!1,y(k),k=-1),h=!0;var o=p;try{for(x(i),d=n(s);null!==d&&(!(d.expirationTime>i)||t&&!L());){var l=d.callback;if("function"==typeof l){d.callback=null,p=d.priorityLevel;var a=l(d.expirationTime<=i);i=e.unstable_now(),"function"==typeof a?d.callback=a:d===n(s)&&r(s),x(i)}else r(s);d=n(s)}if(null!==d)var c=!0;else{var m=n(u);null!==m&&I(C,m.startTime-i),c=!1}return c}finally{d=null,p=o,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var j,A=!1,w=null,k=-1,P=5,S=-1;function L(){return!(e.unstable_now()-Se||125l?(r.sortIndex=o,t(u,r),null===n(s)&&r===n(u)&&(f?(y(k),k=-1):f=!0,I(C,o-l))):(r.sortIndex=a,t(s,r),g||h||(g=!0,D(v))),r},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}}(gT)),gO.exports=gT),gO.exports);let gI=Symbol(),gz=Symbol(),gE=/ServerSideRendering/.test(window.navigator&&window.navigator.userAgent)?M.useEffect:M.useLayoutEffect,gH=gD.unstable_runWithPriority?e=>{try{gD.unstable_runWithPriority(gD.unstable_NormalPriority,e)}catch(t){if("Not implemented."!==t.message)throw t;e()}}:e=>e(),gV=e=>e;function gF(e){var t;let n=(0,M.createContext)({[gI]:{v:{current:e},n:{current:-1},l:new Set,u:e=>e()}});return n[gz]=n.Provider,t=n.Provider,n.Provider=e=>{let{value:n,children:r}=e,i=(0,M.useRef)(n),o=(0,M.useRef)(0),[l,a]=(0,M.useState)(null);l&&(l(n),a(null));let s=(0,M.useRef)();if(!s.current){let e=new Set;s.current={[gI]:{v:i,n:o,l:e,u:(t,n)=>{o.current+=1;let r={n:o.current};(null==n?void 0:n.suspense)&&(r.n*=-1,r.p=new Promise(e=>{a(()=>t=>{r.v=t,delete r.p,e(t)})})),e.forEach(e=>e(r)),t()}}}}return gE(()=>{i.current=n,o.current+=1,gH(()=>{s.current[gI].l.forEach(e=>{e({n:o.current,v:n})})})},[n]),(0,M.createElement)(t,{value:s.current},r)},delete n.Consumer,n}function gB(e,t){let{v:{current:n},n:{current:r},l:i}=(0,M.useContext)(e)[gI],o=t(n),[l,a]=(0,M.useReducer)((e,i)=>{if(!i)return[n,o];if("p"in i)throw i.p;if(i.n===r)return Object.is(e[1],o)?e:[n,o];try{if("v"in i){if(Object.is(e[0],i.v))return e;let n=t(i.v);return Object.is(e[1],n)?e:[i.v,n]}}catch(e){}return[...e]},[n,o]);return Object.is(l[1],o)||a(),gE(()=>(i.add(a),()=>{i.delete(a)}),[i]),l[1]}let gR=gF(null),gY=()=>gB(gR,gV),gG=e=>gB(gR,t=>{if(!t)throw Error("useGraphState must be used within a GraphProvider");return e(t)}),gU=e=>gB(gR,t=>{if(t)return e(t)}),gW=()=>{let e=gG(e=>e.appearance),t=gG(e=>e.theme.colorScheme);return gj(Object.assign(Object.assign({},e),{colorScheme:t}))},gN=e=>{let t=(0,M.useRef)(e);return(0,M.useEffect)(()=>{t.current=e},[e]),t},gK=e=>{let t=gN(e);(0,M.useEffect)(()=>()=>{t.current()},[t])},gZ=(e,t)=>{let n=gN(e),r=(0,M.useRef)(null),i=(0,M.useCallback)(function(){for(var e=arguments.length,i=Array(e),o=0;o{n.current(...i)},t)):(n.current(...i),r.current=setTimeout(()=>{},t))},[t,n]);return(0,M.useEffect)(()=>()=>{r.current&&clearTimeout(r.current)},[]),i},gX=e=>{let{onDrag:t,onDragStart:n,onDragEnd:r,blockPagePointerEvents:i,preventDefault:o=!0,dragThreshold:l=5,onPointerDown:a}=e,s=(0,M.useRef)(null),u=(0,M.useRef)();return{dragProps:{onPointerDown:e=>{null==a||a(e),o&&(e.preventDefault(),e.stopPropagation());let c=!1,d=()=>{c=!0,i&&(s.current=(()=>{let e=document.createElement("div");return e.style.position="fixed",e.style.top="0",e.style.left="0",e.style.width="100%",e.style.height="100%",e.style.zIndex="9999",e.style.cursor="grabbing",e})(),document.body.appendChild(s.current)),null==n||n()};0===l&&d();let p=e.clientX,h=e.clientY,g=e=>{o&&(e.preventDefault(),e.stopPropagation());let n=e.clientX-p,r=e.clientY-h;!c&&(Math.abs(n)>l||Math.abs(r)>l)&&d(),c&&(null==t||t({deltaX:n,deltaY:r}))},f=()=>{s.current&&(document.body.removeChild(s.current),s.current=null),window.removeEventListener("pointermove",g),window.removeEventListener("pointerup",m)},m=e=>{let t=e.clientX-p,n=e.clientY-h;null==r||r({deltaX:t,deltaY:n}),f()};window.addEventListener("pointermove",g),window.addEventListener("pointerup",m),u.current=()=>{f(),u.current=void 0}}},cleanup:()=>{var e;return null==(e=u.current)?void 0:e.call(u)}}};function g_(){let{onFocus:e,onBlur:t,shouldEncapsulate:n=!0,tabIndex:r=0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[i,o]=(0,M.useState)(!1);return{hasFocus:i,focusBindings:(0,M.useMemo)(()=>({tabIndex:r,onFocus:t=>{let r=t.relatedTarget||document.activeElement,i=t.currentTarget!==r&&t.currentTarget.contains(r);n&&r&&i||(o(!0),null==e||e(t))},onBlur:e=>{let r=e.relatedTarget||document.activeElement;n&&r&&e.currentTarget.contains(r)||(o(!1),null==t||t(e))}}),[e,t,r,n]),resetState:(0,M.useCallback)(()=>{o(!1)},[])}}let gQ=()=>{},gJ=e=>e,gq=e=>{let{value:t,onChange:n=gQ,changeDebounceWait:r=500,transform:i=gJ,onFocus:o,onBlur:l,onKeyPress:a,onEnterKeyPress:s}=e,u=(0,M.useMemo)(()=>(0,x.A)(n,r),[r,n]),{hasFocus:c,focusBindings:d}=g_({onFocus:o,onBlur:(0,M.useCallback)(e=>{u.cancel();let r=e.target.value;r!==t&&(null==n||n(r)),null==l||l(e)},[u,l,n,t]),shouldEncapsulate:!1}),[p,h]=(0,M.useState)(t);return(0,M.useEffect)(()=>{c||h(t)},[t]),{draftValue:p,handleChange:(0,M.useCallback)(e=>{let n=i(g$(e));h(n),n!==t&&u(n)},[u,i,t]),handleKeyPress:(0,M.useCallback)(e=>{"Enter"===e.key&&(null==s||s(),e.preventDefault()),null==a||a(e)},[s,a]),focusBindings:d}},g$=e=>{var t;return e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement?e.target.value:null!=(t=e.target.textContent)?t:""},g1=(e,t,n)=>[t,e,n].join("-"),g0=e=>{let t=(0,M.useId)();return(0,M.useMemo)(()=>({id:(e,n)=>g1(n,t,e),fill:n=>((e,t,n)=>n?"url(#".concat(g1(e,t,n),")"):"currentColor")(n,t,e)}),[t,e])};function g2(){let{alwaysTrueForTouchDevices:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{isMobile:t,isTablet:n}=h3(),[r,i]=(0,M.useState)(!1),o=hD();return{hasMouseOver:e&&o&&(t||n)||r,mouseOverTargetProps:(0,M.useMemo)(()=>({onPointerEnter:()=>{i(!0)},onPointerLeave:()=>{i(!1)}}),[])}}let g5=()=>window.location.search.includes("forceEmbed=true")||window!==window.parent,g3=()=>{let[e,t]=(0,M.useState)(!0);return(0,M.useEffect)(()=>{t(g5)},[]),e||!1},g7=["line","areaStacked"],g9=()=>{let e=gG(e=>e.computedConfig.type);return g7.includes(e)};function g4(e){let t=M.useRef(void 0),n=M.useCallback(t=>{let n=e.map(e=>{if(null!=e){if("function"==typeof e){let n=e(t);return"function"==typeof n?n:()=>{e(null)}}return e.current=t,()=>{e.current=null}}});return()=>{n.forEach(e=>null==e?void 0:e())}},e);return M.useMemo(()=>e.every(e=>null==e)?null:e=>{t.current&&(t.current(),t.current=void 0),null!=e&&(t.current=n(e))},e)}let g6=(e,t)=>{let n=(0,M.useCallback)(n=>{e&&!e.contains(n.target)&&t(n)},[e,t]);(0,M.useEffect)(()=>(document.addEventListener("click",n,{capture:!0}),()=>{document.removeEventListener("click",n,{capture:!0})}),[n])};function g8(e){let t=(0,M.useRef)(null);return(0,M.useEffect)(()=>{t.current=e},[e]),t.current}let fe={bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0,isDefault:!0},ft=function(){let{debounce:e,onResize:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[n,r]=(0,M.useReducer)((e,t)=>e.width===t.width&&e.height===t.height?e:t,fe),i=(0,M.useRef)(null),o=(0,M.useRef)(t);o.current=t;let l=(0,M.useRef)((0,x.A)(e=>{var t;null==(t=o.current)||t.call(o,e),r(e)},e||0)).current,a=(0,M.useCallback)(e=>{l(e)},[l]),s=(0,M.useRef)(new ResizeObserver(e=>{var t,n,r,i;let[o]=e;if(!o)return;let{contentBoxSize:l,contentRect:s}=o,u=Math.round(null!=(n=null==(t=null==l?void 0:l[0])?void 0:t.inlineSize)?n:s.width),c=Math.round(null!=(i=null==(r=null==l?void 0:l[0])?void 0:r.blockSize)?i:s.height);a(Object.assign(Object.assign({},s.toJSON()),{width:u,height:c,isDefault:!1}))})),u=(0,M.useCallback)(e=>{e&&i.current!==e&&(i.current&&s.current.unobserve(i.current),i.current=e,e&&s.current.observe(e))},[]);return Object.assign(Object.assign({},n),{setElement:u,element:i.current,toJSON:()=>n})},fn=/^\d+$/,fr=/^\s*true|1\s*$/i,fi=/^\s*false|0\s*$/i,fo=e=>String(e),fl=e=>{if("number"==typeof e&&Number.isNaN(e))return 0;let t=Number.parseFloat("string"==typeof e?e:e.toString());if(Number.isNaN(t))throw Error("Value `".concat(e,"` cannot be cast to number."));return t},fa=e=>{if("boolean"==typeof e)throw Error("Boolean value `".concat(e,"` cannot be cast to date."));let t=new Date(e);if("string"==typeof e&&e.match(fn)){let n=Number.parseFloat(e);Number.isNaN(n)||(t=new Date(n))}if("Invalid Date"===t.toString())throw Error("Value `".concat(e,"` cannot be cast to date."));return t},fs=e=>{if(e instanceof Date)throw Error("Date value `".concat(e.toISOString(),"` cannot be cast to boolean."));if("string"==typeof e){if(e.match(fr))return!0;if(e.match(fi))return!1;throw Error("String value '".concat(e,"' cannot be cast to boolean."))}return!!e},fu=e=>{let{value:t}=e;return null===t?uc:fs(t)?"True":"False"},fc=e=>{let{value:t}=e;return null===t?uc:fu({value:t})},fd=fc,fp=e=>Math.abs(e)>1e3?fp(e/1e3):Number.isInteger(e),fh=(e,t,n)=>"number"!=typeof e?{}:fp(e)?{minimumFractionDigits:0,maximumFractionDigits:0}:((e,t)=>{if(!ck(t)||e.length<2)return!1;let[n,r]=e;return 1>Math.abs(fl(null!=r?r:0)-fl(null!=n?n:0))})(n,t)?{minimumFractionDigits:0,maximumFractionDigits:4}:{minimumFractionDigits:0,maximumFractionDigits:1},fg=e=>e.map(e=>e.value).join(""),ff=e=>"compact"!==e.type?e:{type:"compact",value:e.value.toLowerCase()},fm=e=>{let{intl:t,value:n,tickValues:r=[]}=e;if(null===n)return uc;let i=fh(n,gP.Decimal,r);return fg(t.formatNumberToParts(fl(n),Object.assign(Object.assign({},i),{notation:"compact"})).map(ff))},fy=e=>{let{intl:t,value:n,tickValues:r=[],currency:i}=e;if(!i)return fm({intl:t,value:n,tickValues:r});if(null===n)return uc;let o=fh(n,gP.Currency,r);return fg(t.formatNumberToParts(fl(n),Object.assign(Object.assign({},o),{notation:"compact",style:"currency",currencyDisplay:"narrowSymbol",currency:i})).map(ff))},fb=e=>{let{value:t,decimalPlaces:n}=e;if("number"==typeof n)return{minimumFractionDigits:n,maximumFractionDigits:n};let r=Math.ceil(Math.log10(Math.abs(t))),i=r>=3?0:2===r?1:2;return{minimumFractionDigits:"auto"===n?0:i,maximumFractionDigits:i}},fx=e=>{let{intl:t,value:n,currency:r,numberFormat:i}=e;if(null===n)return uc;let o=fl(n),l=fb({decimalPlaces:"number"==typeof(null==i?void 0:i.decimalPlaces)?i.decimalPlaces:2,value:o});if(!r)return t.formatNumber(o,l);let{base:a,suffix:s}=ux(o,null==i?void 0:i.abbreviation);return t.formatNumber(a,Object.assign(Object.assign({},l),{style:"currency",currencyDisplay:"narrowSymbol",currency:r}))+s},fC=e=>"literal"!==e.type||", "!==e.value?e:{type:"literal",value:" • "},fv=e=>{let{intl:t,value:n}=e;return null===n?uc:fg(t.formatDateToParts(fa(n),{dateStyle:"medium",timeStyle:"medium",timeZone:"UTC"}).map(fC))},fj=e=>{let{intl:t,value:n}=e;return null===n?uc:t.formatDate(fa(n),{dateStyle:"medium",timeZone:"UTC"})},fA=e=>{let{intl:t,value:n}=e;return null===n?uc:t.formatDate(fa(n),{day:"numeric",month:"long",timeZone:"UTC"})},fw=e=>{let{intl:t,value:n,intlOptions:r,numberFormat:i}=e;if(null===n)return uc;let{base:o,suffix:l}=ux(fl(n),null==i?void 0:i.abbreviation),a=fb({value:o,decimalPlaces:null==i?void 0:i.decimalPlaces});return t.formatNumber(o,Object.assign(Object.assign({},r),a))+l};!function(e){e.Standard="standard",e.Compact="compact"}(i||(i={}));let fk={round:!0,units:["y","mo","d","h","m","s"]},fP=H.humanizer({language:"en",conjunction:" and ",serialComma:!1}),fS=H.humanizer({language:"en",spacer:"",delimiter:" ",languages:{en:{y:()=>"y",mo:()=>"mo",w:()=>"w",d:()=>"d",h:()=>"h",m:()=>"m",s:()=>"s",ms:()=>"ms"}}}),fL=e=>{let{value:t,notation:n=i.Standard}=e;if(null===t)return uc;let r=fl(t);return n===i.Compact?fS(r,fk):fP(r,fk)},fM=e=>{let{value:t}=e;return null===t?uc:fL({value:t,notation:i.Compact})},fO=e=>{let{intl:t,value:n}=e;return null===n?uc:t.formatNumber(fl(n),{maximumFractionDigits:0})},fT=e=>{let{intl:t,value:n}=e;return null===n?uc:t.formatDate(fa(n),{month:"long",timeZone:"UTC"})},fD=e=>{let{intl:t,value:n}=e;return null===n?uc:t.formatDate(fa(n),{month:"short",year:"numeric",timeZone:"UTC"})},fI=e=>{let{intl:t,value:n,intlOptions:r,numberFormat:i}=e;if(null===n)return uc;let o=fl(n),l=void 0===(null==i?void 0:i.decimalPlaces)?{minimumFractionDigits:0,maximumFractionDigits:2}:fb({value:o,decimalPlaces:null==i?void 0:i.decimalPlaces});return t.formatNumber(o,Object.assign(Object.assign(Object.assign({},r),l),{style:"percent"}))},fz=e=>{let{value:t}=e;if(null===t)return uc;let n=fa(t);return"Q".concat(Math.floor(n.getUTCMonth()/3)+1," ").concat(n.getUTCFullYear())},fE=e=>{let{value:t}=e;return null===t?uc:fo(t)},fH=e=>{let{intl:t,value:n}=e;if(null===n)return uc;let r=fa(n),i=(0,V.f)(r,6);return t.formatDateTimeRange(r,i,{day:"numeric",month:"long",timeZone:"UTC"}).replace(/\d{4}/g,"").replace(/\s{2,}/g," ").trim()},fV=e=>{let{intl:t,value:n}=e;if(null===n)return uc;let r=fa(n),i=(0,V.f)(r,6);return t.formatDateTimeRange(r,i,{dateStyle:"medium",timeZone:"UTC"})},fF=e=>{let{intl:t,value:n}=e;return null===n?uc:t.formatDate(fa(n),{year:"numeric",timeZone:"UTC"})},fB=e=>{let{intl:t,value:n,cadence:r={cadence:"daily",step:1}}=e;if(null===n)return uc;switch(r.cadence){case"hourly":return t.formatDate(fa(n),{timeStyle:"short",timeZone:"UTC"});case"daily":case"weekly":return t.formatDate(fa(n),{day:"numeric",month:"short",timeZone:"UTC"});case"monthly":return t.formatDate(fa(n),{month:"short",year:"numeric",timeZone:"UTC"});case"quarterly":return fz({value:n});case"yearly":return t.formatDate(fa(n),{year:"numeric",timeZone:"UTC"})}},fR=e=>{let{intl:t,value:n}=e;return null===n?uc:t.formatDate(fa(n),{day:"numeric",month:"short",timeZone:"UTC"})},fY=fM,fG=fm,fU=e=>{let{intl:t,value:n}=e;return null===n?uc:t.formatDate(fa(n),{month:"short",timeZone:"UTC"})},fW=e=>{let{intl:t,value:n,tickValues:r=[]}=e;if(null===n)return uc;let i=fh(n,gP.Percentage,r);return fg(t.formatNumberToParts(fl(n),Object.assign(Object.assign({},i),{notation:"compact",style:"percent"})).map(ff))},fN=fE,fK=e=>{let{intl:t,value:n}=e;return null===n?uc:t.formatDate(fa(n),{day:"numeric",month:"long",year:"numeric",weekday:"long",timeZone:"UTC"})},fZ=e=>{let{intl:t,value:n}=e;if(null===n)return uc;let r=fa(n),i=0!==r.getUTCSeconds();return t.formatDate(r,{day:"2-digit",month:"short",year:"numeric",weekday:"short",hour:"2-digit",minute:"2-digit",second:i?"2-digit":void 0,timeZone:"UTC"})},fX=e=>{let{intl:t,differenceLabelType:n,startValue:r,endValue:i}=e;if(null===r||null===i||void 0===r||void 0===i)return"n/a";let o=fl(r),l=fl(i);switch(n){case"absolute-difference":return fw({intl:t,value:l-o,intlOptions:{signDisplay:"always"}});case"relative-difference":{let e=(l-o)/o;return l-o==0?"0%":e===1/0?"∞":e===-1/0?"-∞":fI({intl:t,value:e,intlOptions:{signDisplay:"always"}})}case"proportion":{if(l-o==0)return"=";let e=l/o;return e===1/0?"∞":e===-1/0?"-∞":"".concat(t.formatNumber(e,{maximumFractionDigits:1}),"x")}}},f_=()=>(0,F.E)({locale:"en-GB"}),fQ=e=>{let{intl:t,primaryValue:n,comparisonValue:r}=e;if(void 0===n||void 0===r)return null;if(null===n||null===r)return{label:"No data",appearance:"neutral"};let i=fl(n),o=fl(r);if(0===o)return null;let l=(i-o)/Math.abs(o);if(0===l)return{label:"No change",appearance:"neutral"};let a=i>o;return{label:"".concat(a?"+":"-").concat(fI({intl:t,value:Math.abs(l)})),appearance:a?"positive":"negative"}},fJ="EN_GB",fq={type:"spring",stiffness:500,damping:60,mass:1},f$={type:"tween",ease:"backOut",duration:.5},f1={type:"tween",ease:"circOut",duration:.4},{toolbar:f0,below:f2,above:f5,modal:f3}=s_,f7=f2+f0,f9=f2+f7,f4=f2+f9,f6=f2+f4,f8=f2+f6,me=f2+f8,mt={dataLabels:f2+me,stackTotals:me,trendLines:f2+f8,targetLines:f8,pointAnnotations:f4,annotations:f6,annotationsMenu:f9,highlightEditor:f7,tooltips:f5+f3,focusGuard:999},mn=(0,M.createContext)(dj),mr=()=>(0,M.useContext)(mn),mi=e=>{let{children:t,value:n}=e;return(0,h.jsx)(mn.Provider,n?{value:n,children:t}:{value:dj,children:t})},mo=(0,M.createContext)(null),ml=()=>(0,M.useContext)(mo)||null,ma=e=>{var{as:t="div",children:n,className:r}=e,i=sJ(e,["as","children","className"]);let[o,l]=(0,M.useState)(null),a=(0,M.useMemo)(()=>({container:o}),[o]);return(0,h.jsx)(t,Object.assign({"data-graphy-portal":!0,ref:l},r?{className:r}:{style:{display:"contents"}},i,{children:(0,h.jsx)(mo.Provider,{value:a,children:n})}))},ms=gF(null),mu=e=>gB(ms,t=>{if(!t)throw Error("useChartLayoutValue requires ChartLayoutContext");return t[e]}),mc=p.I4.div(tH(),e=>{var t;let{$theme:n}=e;return null!=(t=n.colorScheme)?t:"auto"},e=>{let{$theme:t}=e;return uS(t)},uv("textPrimary")),md=(0,M.createContext)(null),mp=()=>(0,M.useContext)(md),mh=uD(md,"ThemeProvider"),mg=e=>{let{children:t,theme:n}=e;return(0,h.jsx)(p.NP,{theme:n,children:(0,h.jsx)(md.Provider,{value:n,children:(0,h.jsx)(mc,{$theme:n,"data-graphy-theme":n.id,children:t})})})},mf=(0,M.forwardRef)((e,t)=>{let{children:n}=e,r=mh();return(0,h.jsx)(mc,{ref:t,$theme:r,"data-graphy-theme":r.id,children:n})});mf.displayName="PortalThemeProvider";let mm=p.I4.div(tF(),e=>{let{$resetFontSize:t}=e;if(t)return(0,p.AH)(tV(),hW)},e=>{let{$zIndex:t}=e;return null!=t?t:"auto"},e=>{let{$zIndex:t}=e;return t?"relative":"static"},e=>{let{$zIndex:t}=e;return t?"block":"contents"}),my=e=>{var t;let{children:n,zIndex:r,id:i,container:o,resetFontSize:l=!0}=e,[,a]=(0,M.useState)(!1);(0,M.useLayoutEffect)(()=>{a(!0)},[]);let s=null!=(t=null!=o?o:document.getElementById("graphy_root"))?t:document.body;return(0,R.createPortal)((0,h.jsx)(mf,{children:(0,h.jsx)(mm,{id:i,$zIndex:r,$resetFontSize:l,children:n})}),s)},mb=p.I4.div(tB(),hW,uv("textSecondary")),mx=p.I4.div(tR(),mt.tooltips),mC=p.I4.div(tY()),mv=p.I4.div(tG(),uv("tooltipBackground"),uv("tooltipBorderColor")),mj=p.I4.div(tU(),sP,h0,uv("tooltipHeadingTextColor")),mA=p.I4.div(tW()),mw=p.I4.div(tN(),sS,uv("tooltipLabelTextColor")),mk=p.I4.div(tK(),e=>{let{$placement:t}=e;return mP(t)},uv("tooltipBorderColor")),mP=e=>{switch(e){case"top":return(0,p.AH)(tZ());case"right":return(0,p.AH)(tX());case"bottom":return(0,p.AH)(t_());case"left":return(0,p.AH)(tQ())}},mS=M.forwardRef(function(e,t){var{children:n}=e,r=sJ(e,["children"]);let i=mu("textScale"),o=mu("font"),l=mr().find(e=>o.body.fontId===e.id),a=ml();return(0,h.jsx)(my,{container:null==a?void 0:a.container,zIndex:mt.tooltips,id:"tooltipAddon",children:(0,h.jsx)(mb,{style:{"--typography-scale":i,fontFamily:dk(null==l?void 0:l.fontFamily),color:o.body.color},children:(0,h.jsx)(mx,Object.assign({ref:t},r,{children:n}))})})});p.I4.div(tJ(),sA);let mL=p.I4.div(tq(),h_(.7),e=>{let{$size:t}=e;return"small"===t?sw:sA}),mM=e=>{let{text:t,size:n="regular"}=e;return(0,h.jsx)(mL,{$size:n,children:t})},mO=p.I4.div(t$(),h_(1.25),h_(2)),mT=p.I4.div(t1()),mD=p.I4.div(t0(),h0,sk,uv("tooltipLabelTextColor")),mI=p.I4.code(t2(),uv("tooltipValueTextColor")),mz=e=>{let{symbol:t,label:n,value:r}=e;return(0,h.jsxs)(mO,{children:[t&&(0,h.jsx)(mT,{children:t}),n&&(0,h.jsx)(mD,{children:n}),(0,h.jsx)(mI,{children:r})]})},mE=e=>{let{children:t,onHover:n,onHoverEnd:r,hasArrow:i=!1,arrowPlacement:o="bottom"}=e;return(0,h.jsx)(mC,{role:"tooltip",children:(0,h.jsxs)(mv,{onPointerEnter:()=>null==n?void 0:n(),onPointerLeave:()=>null==r?void 0:r(),children:[t,i&&(0,h.jsx)(mk,{$placement:o,children:(0,h.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"8",viewBox:"0 0 18 8",fill:"none",children:(0,h.jsx)("path",{d:"M14.5303 2.03033L15.8107 0.75H14H4H2.18934L3.46967 2.03033L8.11612 6.67678C8.60427 7.16493 9.39573 7.16493 9.88388 6.67678L14.5303 2.03033Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"1.5"})})})]})})},mH=mj,mV=e=>{let{children:t}=e;return(0,h.jsx)(mA,{children:(0,h.jsx)(mw,{children:t})})},mF=e=>{let{pointer:t,isEnabled:n=!0,offset:r=0}=e,i=n&&t,{setElement:o,element:l,width:a,height:s}=ft(),{setElement:u,width:c,height:d}=ft();return(0,M.useEffect)(()=>{if(l){let e=dz(l);e&&u(e)}},[u,l]),{setTooltipContainer:o,isVisible:i,position:(0,M.useMemo)(()=>{if(!t)return{};let{pointerX:e,pointerY:n,scaleFactor:i}=t,o=r*i,l=a*i,u=s*i,p=e+o;p+l>c-8&&(p=e-l-o);let h=Math.max(n-u/2,8);return h+=Math.min(0,d-h-u-8),{transformOrigin:"top left",transform:"translate(".concat(p,"px, ").concat(h,"px) scale(").concat(i,") ")}},[t,r,a,c,s,d])}},mB=p.I4.div(t5()),mR=p.I4.div(t3()),mY=p.I4.div(t7(),h_(.5)),mG=p.I4.div(t9()),mU=p.I4.div(t4(),h_(1)),mW=p.I4.span(t6(),sL,uv("tooltipValueTextColor")),mN=p.I4.div(t8()),mK=e=>{let{heading:t,accessory:n,trend:r,value:i,label:o,caption:l}=e;return(0,h.jsxs)(mB,{children:[(0,h.jsxs)(mR,{children:[(0,h.jsxs)(mY,{children:[(0,h.jsx)(mG,{children:null!=n?n:(0,h.jsx)("div",{})}),(0,h.jsx)(mH,{children:t})]}),(0,h.jsx)(mU,{children:(0,h.jsx)(mW,{children:i})}),l?(0,h.jsx)(mM,{text:l}):(0,h.jsx)(mN,{}),r]}),o&&(0,h.jsx)(mV,{children:o})]})},mZ=()=>{let[e,t]=(0,M.useState)(null),[n,r]=(0,M.useState)(null);return{pointerX:e,pointerY:n,handleMouseMove:(0,M.useCallback)(e=>{t(e.clientX),r(e.clientY)},[]),handleMouseLeave:(0,M.useCallback)(()=>{t(null),r(null)},[])}},mX=e=>(0,p.AH)(nt(),sW[e],sN[e],su[sK[e]],sZ[e]&&(0,p.AH)(ne(),sZ[e])),m_=mX("titleLarge"),mQ=mX("titleMedium"),mJ=mX("titleSmall"),mq=mX("titleSmaller"),m$=mX("titleSmallest"),m1=mX("body"),m0=mX("bodyBold"),m2=mX("bodyLink"),m5=mX("bodyLarge"),m3=mX("caption"),m7=mX("captionLink"),m9=mX("label"),m4=mX("labelSmall"),m6=mX("captionBody");var m8=Object.freeze({__proto__:null,body:m1,bodyBold:m0,bodyLarge:m5,bodyLink:m2,caption:m3,captionBody:m6,captionLink:m7,label:m9,labelSmall:m4,titleLarge:m_,titleMedium:mQ,titleSmall:mJ,titleSmaller:mq,titleSmallest:m$});let ye=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.05;return(0,p.AH)(nn(),uj(t||uv("textPrimary"),n),e,e,e/2,e/2)},yt=["#B399FE","#FC7E91","#33B6E0","#FFC849","#25CDA5","#FA9B65","#D93C95","#845FD8","#3F8EEB","#58C8D8","#F35074","#6EA0DA"],yn=(e,t,n,r)=>{var i,o;let l,{vizType:a,theme:s,palette:u,colorScheme:c,seriesConfig:d,brandKit:p,customPalettes:h}=e;if("custom"===s)return gy(d,a);if("brandKit"===s)return gy(p,a);switch(s){case"graphy":case"pastel":l="graphy"===s?ys(a):yu(a);break;case"mono":l=yl(u,t,c),yl(u,10,c);break;case"neon":l=ya(u,t,a),ya(u,10,a);break;case"customPalette":{let e=yo({paletteId:u,customPalettes:h,vizType:a,seriesCount:null!=t?t:10});e.full,l=e.base}}if(r&&n&&!(Object.keys(null!=d?d:{}).filter(e=>{var t;return null==(t=null==d?void 0:d[e])?void 0:t.color}).length>1)){let e=null!=(o=null==(i=null==d?void 0:d.series1)?void 0:i.color)?o:l[0];return Array(t).fill(e)}return((e,t,n,r,i)=>{let o="waterfall"===n?gm:gf,l="waterfall"===n?o.length:Math.max(r,1);return o.slice(0,l).map((t,n)=>{var r;let o=null==(r=null==i?void 0:i[t])?void 0:r.color;return null!=o?o:e[n%e.length]})})(l,0,a,t,d)},yr=(e,t)=>{switch(e.theme){case"graphy":return ys(e.vizType);case"pastel":return yu(e.vizType);case"mono":return yl(e.palette,null!=t?t:7,e.colorScheme);case"neon":return ya(e.palette,null!=t?t:10,e.vizType);case"customPalette":return yo({paletteId:e.palette,customPalettes:e.customPalettes,vizType:e.vizType,seriesCount:null!=t?t:10}).full;default:return ys(e)}},yi={dark:{1:[500],2:[600,400],3:[600,400,200],4:[600,500,300,100],5:[700,600,400,200,50],6:[600,500,400,300,200,100],7:[600,500,400,300,200,100,50],default:[700,600,500,400,300,200,100,50]},light:{1:[600],2:[700,500],3:[800,600,400],4:[800,600,400,300],5:[800,700,600,500,400],6:[800,700,600,500,400,300],7:[900,800,700,600,500,400,300],default:[900,800,700,600,500,400,300,200]}},yo=e=>{let{paletteId:t,customPalettes:n,vizType:r,seriesCount:i}=e,o=null==n?void 0:n.find(e=>e.id===t);if(!o){let e=ys(r);return{base:e,full:e}}let l=o.colors.map(e=>e.hex);if(0===l.length){let e=ys(r);return{base:e,full:e}}return{base:l.slice(0,i),full:l}},yl=(e,t,n)=>{var r;let i=null!=(r=yi[n][t])?r:yi[n].default,o=i.map(t=>gl["".concat(e).concat(t)]);return o.length?o:[gl["".concat(e).concat(i[0])]]},ya=(e,t,n)=>{if("waterfall"===n)return gh;let r=((e,t)=>{let n=e.length,r=(t%n+n)%n;return Array.from({length:n},(t,i)=>e[(i+r)%n])})(gc,gc.indexOf(ga[e])).slice(0,t);return r.length?r:[gc[0]]},ys=e=>"waterfall"===e?gd:gs,yu=e=>"waterfall"===e?gp:gu,yc=e=>{let{min:t,max:n}=e;return t&&n?"@media (".concat(sQ[t],"px <= width < ").concat(sQ[n],"px)"):t?"@media (width >= ".concat(sQ[t],"px)"):n?"@media (width < ".concat(sQ[n],"px)"):""},yd={tablet:yc({min:"tablet"}),desktop:yc({min:"desktop"}),largeScreen:yc({min:"largeScreen"}),mobileOnly:yc({max:"tablet"}),tabletOnly:yc({min:"tablet",max:"desktop"}),desktopOnly:yc({min:"desktop",max:"largeScreen"}),largeScreenOnly:yc({min:"largeScreen"}),custom:yc},yp=O.z.object({id:O.z.string(),label:O.z.string().optional(),value:O.z.string()}),yh=O.z.object({white:O.z.string(),black:O.z.string(),transparent:O.z.string(),grey100:O.z.string(),grey95:O.z.string(),grey90:O.z.string(),grey85:O.z.string(),grey80:O.z.string(),grey75:O.z.string(),grey70:O.z.string(),grey60:O.z.string(),grey50:O.z.string(),grey0:O.z.string(),green60:O.z.string(),green50:O.z.string(),red60:O.z.string(),red50:O.z.string(),amber70:O.z.string(),amber50:O.z.string(),amber40:O.z.string(),amber30:O.z.string(),blue80:O.z.string(),blue60:O.z.string(),purple50:O.z.string(),purple30:O.z.string(),greyGradient80:O.z.string(),brand:O.z.string(),success:O.z.string(),warning:O.z.string(),alert:O.z.string(),textPrimary:O.z.string(),textSecondary:O.z.string(),textDisabled:O.z.string(),border100:O.z.string(),border10:O.z.string(),sunkenBackground:O.z.string(),defaultBackground:O.z.string(),raisedBackground:O.z.string(),overlayBackground:O.z.string(),overlayBorderGradient:O.z.string(),graphBackground:O.z.string(),gridLineColor:O.z.string(),hoverGuideLineColor:O.z.string(),originLineColor:O.z.string(),targetLineColor:O.z.string(),targetLineMarkerColor:O.z.string(),legendBackground:O.z.string(),legendBorderColor:O.z.string(),legendTextColor:O.z.string(),dimmedSeriesLabelTextColor:O.z.string(),dimmedSeriesLabelLineColor:O.z.string(),trendNegativeColor:O.z.string(),trendPositiveColor:O.z.string(),tooltipBackground:O.z.string(),tooltipBorderColor:O.z.string(),tooltipHeadingTextColor:O.z.string(),tooltipLabelTextColor:O.z.string(),tooltipValueTextColor:O.z.string(),graphTypeIconAccentColor:O.z.string(),heatmapEmptyTileBackground:O.z.string(),stackedBarHoverBorderColor:O.z.string(),defaultArrowAnnotationColor:O.z.string(),annotationFrameBorderColor:O.z.string(),annotationMenuTriggerIconColor:O.z.string()}),yg=O.z.enum(["light","dark"]),yf=O.z.object({arrowStroke:O.z.string().optional(),shapeFill:O.z.string().optional()}),ym=O.z.object({id:O.z.string(),colorScheme:yg,values:yh,canvasColors:O.z.array(yp),defaultAnnotationColorIds:yf}),yy=yh.partial(),yb=e=>Array.isArray(e)?!!e.length:!!e;!function(e){e.Null="null",e.Number="number",e.Boolean="boolean",e.Datetime="datetime",e.String="string"}(o||(o={}));let yx="#%_ENCODED_%#",yC=e=>"string"==typeof e&&e.startsWith(yx)?e:null===e?yv(o.Null):"number"==typeof e?yv(o.Number,e):"boolean"==typeof e?yv(o.Boolean,e):e instanceof Date?yv(o.Datetime,e.toISOString()):yv(o.String,e),yv=(e,t)=>"".concat(yx).concat(JSON.stringify({type:e,value:t})),yj=e=>{if("string"!=typeof e||!e.startsWith(yx))return e;try{let{type:t,value:n}=JSON.parse(e.slice(13));if(t===o.Null||void 0===n)return null;if(t===o.Datetime)return new Date(n);if([o.Number,o.Boolean,o.String].includes(t))return n}catch(e){}return e},yA=e=>{let{data:t,group:n}=e;return yb(n)?[...new Set([...t].map(e=>e[n[0].variableKey]))].map(yC):[]},yw=(0,M.createContext)(null),yk=()=>{let e=(0,M.useContext)(yw);if(null===e)throw Error("InteractivityProvider must be mounted above useInteractivity");return e},yP=e=>"line"===e.type,yS=e=>"bar"===e.type,yL=e=>"tile"===e.type,yM=e=>yP(e)||yS(e)||yL(e)||yT(e),yO=e=>"pie"===e.type||"donut"===e.type,yT=e=>"point"===e.type,yD=e=>yS(e)&&!0===e.isMekko,yI=e=>"xy"===e.type,yz=(0,M.createContext)(null),yE=uD(yz,"HighlightProvider"),yH=e=>{let{vizType:t,aestheticMappings:n,data:r,chartHasTrend:i,children:o,highlightStyle:l}=e,{highlight:a,id:s}=n,u="highlightGroup"in n?n.highlightGroup:void 0,c="group"in n?n.group:void 0,d="x"in n?n.x:void 0,{overlayState:{closestGeomDataPoint:p}}=yk(),g=!!p,f=(0,M.useMemo)(()=>{let e=!!u&&r.getValues(u).some(Boolean),t=!!a&&r.getValues(a).some(Boolean);return e||t},[r,a,u]),m=(0,M.useMemo)(()=>yV({data:r,highlight:a}),[r,a]),y=(0,M.useMemo)(()=>yF({data:r,group:c,highlightGroup:u}),[r,c,u]),b=(0,M.useMemo)(()=>yR({data:r,x:d,highlight:a}),[r,d,a]),x=(0,M.useCallback)(e=>!0===m(e),[m]),C=(0,M.useCallback)(e=>!0===y(e),[y]),v=(0,M.useCallback)(e=>!(f||!i)||!1===y(e),[f,i,y]),j=(0,M.useCallback)(e=>{let t=v(e),n=yj(yB({observation:e,group:c})),r=p&&yP(p)&&p.groupValues.includes(n);return g&&!r||t&&!r},[p,c,g,v]),A=(0,M.useCallback)(e=>{let t=!f&&i,n=(null!==m(e)||null!==y(e))&&!0!==m(e)&&!0!==y(e),r=p&&yS(p)&&e[s]===p.id;return g&&!r||(t||n)&&!r},[f,i,m,y,p,s,g]),w=(0,M.useCallback)(e=>{if(!u$.includes(t))return v(e)&&!x(e);let n=p&&yT(p)&&e[s]===p.id;if(g&&!n)return!0;let r=!f&&i,o=(null!==m(e)||null!==y(e))&&!0!==m(e)&&!0!==y(e);return(r||o)&&!n},[f,i,m,y,p,s,g,x,v,t]),k=(0,M.useCallback)(e=>!0===m(e)||!0===y(e),[m,y]),P=(0,M.useCallback)(e=>!!["barStacked","columnStacked"].includes(t)&&!0===b(e),[t,b]),S=(0,M.useMemo)(()=>["line","areaStacked"].includes(t)&&[...r].some(C),[r,C,t]),L=(0,M.useMemo)(()=>["barStacked","columnStacked","barStackedFill","columnStackedFill","mekko"].includes(t)&&[...r].some(e=>!0===y(e)),[r,y,t]),O=g?"fade-color":null!=l?l:"grey",T=g?"weak":"normal",D=(0,M.useMemo)(()=>({isHighlighted:m,isGroupHighlighted:y,isXValueHighlighted:b,isPointHighlighted:x,isSeriesHighlighted:C,isSeriesDimmed:v,isLineDimmed:j,isBarDimmed:A,isPointDimmed:w,isBarHighlighted:k,isStackHighlighted:P,isAnyLineHighlighted:S,isAnyStackHighlighted:L,chartHasHighlight:f,highlightStyle:O,dimAmount:T}),[m,y,b,x,C,v,j,A,w,k,P,S,L,f,O,T]);return(0,h.jsx)(yz.Provider,{value:D,children:o})},yV=e=>{let{data:t,highlight:n}=e,r=void 0!==n&&t.getValues(n).some(e=>null!==e&&fs(e));return e=>{if(!n||!r)return null;let t=e[n];return null===t?null:fs(t)}},yF=e=>{let{data:t,group:n,highlightGroup:r}=e,i=yA({data:t,group:n}),o=new Map;for(let e of i)o.set(e,null);if(r)for(let e of t){let t=yB({observation:e,group:n});if(!o.has(t))continue;let i=e[r];if(null===i)continue;let l=fs(i);null===o.get(t)?o.set(t,l):l&&o.set(t,!0)}if([...o.values()].every(e=>!1===e))for(let e of i)o.set(e,null);return e=>{var t;if(!r)return null;let i=yB({observation:e,group:n});return null!=(t=o.get(i))?t:null}},yB=e=>{let{observation:t,group:n}=e;return(null==n?void 0:n[0])?yC(t[n[0].variableKey]):""},yR=e=>{let{data:t,x:n,highlight:r}=e;if(!r||!n)return()=>null;let i=[...new Set(t.getValues(n))].map(yC),o=new Map;for(let e of i)o.set(e,!1),[...t].filter(t=>yC(t[n])===e).every(e=>{let t=e[r];return null!==t&&fs(t)})&&o.set(e,!0);if([...o.values()].every(e=>!1===e))for(let e of i)o.set(e,null);return e=>{var t;if(!r)return null;let i=yC(e[n]);return null!=(t=o.get(i))?t:null}},yY="undefined"!=typeof document?document.createElement("div"):null;yY&&(yY.style.cssText="\n position: absolute;\n left: -999999px;\n top: -999999px;\n opacity: 0;\n pointer-events: none;\n ",document.body.appendChild(yY));let yG=()=>{let e=mu("textScale"),t=mu("font"),n=(0,M.useContext)(yz);return(0,M.useCallback)(r=>{var i;if(!yY)return{x:0,y:0,width:0,height:0,top:0,right:0,bottom:0,left:0,toJSON:()=>({})};yY.innerHTML=K.renderToStaticMarkup((0,h.jsx)(Z.Dk,{children:(0,h.jsx)(mg,{theme:h4,children:(0,h.jsx)(yz.Provider,{value:n,children:(0,h.jsx)(mb,{style:{"--typography-scale":e,"--typography-chart-font-family":dk(t.body.fontId)},children:(0,h.jsx)("span",{"data-id":"measure-react-content-span",children:r})})})})}));let o=yY.querySelector('[data-id="measure-react-content-span"]');return null!=(i=null==o?void 0:o.getBoundingClientRect())?i:yY.getBoundingClientRect()},[t,n,e])},yU=e=>{let{vizType:t,observations:n,x:r,y:i,group:o,skip:l=()=>!1}=e,[a,s]=o,{order:u,variableKey:c}=a,{order:d,variableKey:p}=s||{},h=((null==u?void 0:u.length)?yN(n,u,c):yW(n,c)).filter(e=>!l(e)),g=[];p&&(g=(null==d?void 0:d.length)?yN(n,d,p):yW(n,p));let{partitions:f}=(e=>{let{observations:t,x:n,group:r}=e,i=(0,er.Ay)(t,e=>(e=>{var t;let{observation:n,x:r,group:i}=e,o=null==(t=i[1])?void 0:t.variableKey;return(o?[n[o],n[r]]:[n[r]]).map(yC).join(",")})({observation:e,x:n,group:r})),o=[...i.values()],l=[...i.keys()];return{partitionsMap:i,partitions:o,partitionKeys:l}})({observations:n,x:r,group:o}),m=f.map(e=>e.reduce((e,t)=>Object.assign(Object.assign({},e),{[yC(t[c])]:t}),{}));return{stackedData:yK((0,X.A)().keys(h).value((e,t)=>{var n,r;return fl(null!=(r=null==(n=e[t])?void 0:n[i])?r:0)}).offset(["barStackedFill","columnStackedFill","mekko"].includes(t)?_.A:Q.A)(m)),barGroupKeys:g}},yW=(e,t)=>[...new Set(e.map(e=>e[t]))].map(yC),yN=(e,t,n)=>{let r=[],i=[];for(let o of t)for(let t of e)t[n]===o?r.push(t):i.push(t);return yW([...r,...i],n)},yK=e=>e.map(e=>e.map(t=>t.data[e.key]?{seriesKey:e.key,yLowerValue:t[0],yUpperValue:t[1],observation:t.data[e.key]}:null)),yZ=e=>{let{stackedData:t}=e;return(0,C.A)(...t)},yX=e=>{let{observation:t,group:n}=e;return n?n.map(e=>{let{variableKey:n}=e;return t[n]}):[]},y_=e=>{let{observations:t,group:n=[]}=e,{partitionsMap:r,partitionPathLabels:i}=yJ({group:n,observations:t}),o=[...r.values()],l=[...r.keys()];return{partitionsMap:r,partitions:o,partitionKeys:l,partitionPathLabels:i}},yQ=e=>{let{observation:t,group:n}=e;return yX({observation:t,group:n}).map(yC).join(",")},yJ=e=>{var t;let{group:n,observations:r}=e,i=yq({group:n,observations:r,keyPath:[]});(null==(t=n[0])?void 0:t.order)&&(i=y$(i,n[0].order,0));let o=new Map,l=new Set;for(let[e,t]of i)l.add(e),o.set(e.map(yC).join(","),t);return{partitionsMap:o,partitionPathLabels:[...l]}},yq=e=>{var t;let{group:n,observations:r,keyPath:i}=e,[o,...l]=n;if(!o)return[[i,r]];let a=[...(0,er.Ay)(r,e=>e[o.variableKey])].map(e=>{let[t,n]=e;return[[...i,t],n]});return l.length?a.flatMap(e=>{let[t,n]=e;return yq({group:l,observations:n,keyPath:t})}):(null==(t=n[0])?void 0:t.order)?y$(a,n[0].order,1):a},y$=(e,t,n)=>{if(t.length){let r=[],i=[];for(let o of t)for(let t of e)t[0][n]===o?r.push(t):i.push(t);return[...r,...i]}return e},y1=e=>{let{observation:t,cluster:n}=e;return n?Array.isArray(n)?n.map(e=>t[e]):[t[n]]:[]},y0=e=>Array.isArray(e)?!!e.length:!!e,y2=(e,t)=>{let n=(0,eu.d)(e);return M.useEffect(()=>{let r=(0,es.xv)(n.get(),e);(0,ec.i)(0,1,Object.assign(Object.assign({},t),{onUpdate:e=>{let t=r(e);return n.set(t)}}))},[t,e,n]),n},y5=(e,t)=>{if(null==t)return!1;if(cA(e))try{return fa(t),!0}catch(e){return!1}if(ck(e))try{return fl(t),!0}catch(e){return!1}return!0},y3=e=>{try{return fl(e),!0}catch(e){return!1}},y7=e=>{let{comboPlotType:t,yAxisProperties:n,comboPlotAxisCount:r,partitionKeys:i}=e,{primaryGeomKeys:o,secondaryGeomKey:l}=y9(n,t);return{primaryGeomKeys:o,secondaryGeomKey:l,primaryDomainKeys:"single"===r?i:o,secondaryDomainKey:"single"===r?null:l}},y9=(e,t)=>{var n,r;let i=e.filter(e=>"line"===e.shape).map(e=>yC(e.key)),o=e.filter(e=>"line"!==e.shape).map(e=>yC(e.key));return"lines"===t?{primaryGeomKeys:i.slice(0,-1),secondaryGeomKey:null!=(n=i[i.length-1])?n:null}:{primaryGeomKeys:o,secondaryGeomKey:null!=(r=i[0])?r:null}},y4=["barStacked","columnStacked","barStackedFill","columnStackedFill","mekko"],y6=e=>{var t,n;let{vizType:r,data:i,x:o,y:l,group:a,yGoalValue:s,secondaryGeomKey:u,comboPlotAxisCount:c,customEndAt:d}=e,{stackedData:p}=yU({vizType:r,observations:[...i],x:o,y:l,group:a,skip:e=>"double"===c&&e===u}),h=p.flat(),g=null!=(t=(0,eo.A)(h,e=>{var t;return null!=(t=null==e?void 0:e.yUpperValue)?t:0}))?t:0,f=d?Math.max(d,g):g,m=[null!=(n=(0,el.A)(h,e=>{var t;return null!=(t=null==e?void 0:e.yLowerValue)?t:0}))?n:0,f];return y3(s)?[Math.min(fl(s),m[0]),Math.max(fl(s),m[1])]:m},y8=e=>{let t,{strategy:n,values:r,absoluteValue:i}=e;try{if(null===i)return null;t=fl(i)}catch(e){return null}switch(n){case"divide-by-total":{let e=be(r);return 0===e?null:t/e}case"divide-by-max-value":{let e=bt(r);return null===e||0===e?null:t/e}}},be=e=>e.reduce((e,t)=>{if(null===t)return e;try{return e+fl(t)}catch(t){return e}},0),bt=e=>{let t=[];for(let n of e)if(null!==n)try{t.push(fl(n))}catch(e){}return 0===t.length?null:Math.max(...t)},bn=e=>{let t=!1;try{t=null===e||fl(e)>=0}catch(e){}return t},br=(e,t,n,r)=>{let i=r.reduce((r,i)=>{let o=i.find(e=>null==e?void 0:e.observation),l=bi(null==o?void 0:o.observation,e,n);if(!l)return r;let a=i.map(e=>{var n;return null!=(n=null==e?void 0:e.observation[t])?n:null});return Object.assign(Object.assign({},r),{[l]:a})},{});return t=>{var r;let o=bi(t,e,n);return o&&null!=(r=i[o])?r:[]}},bi=(e,t,n)=>{var r,i;if(!e)return null;let o=yC(null!=(r=e[t])?r:"");return n[1]&&(o="".concat(o,"-").concat(yC(null!=(i=e[n[1].variableKey])?i:""))),o},bo="__%graphy%__upper",bl="__%graphy%__lower",ba=(e,t,n)=>Object.assign(Object.assign({},e),{[bo]:t,[bl]:n}),bs=e=>e>=200?8:4,bu=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.3;return uk(e,uP(t,1),n)},bc=e=>{let{theme:t,fill:n,opacity:r,isDimmed:i,highlightStyle:o,backgroundColor:l,dimAmount:a="normal"}=e;if(!n)return"";let s=((e,t,n)=>{if(void 0===n||1===n)return t;try{return uk(e.values.grey100,t,n)}catch(e){return t}})(t,n,r);if(!i)return s;try{let e=l&&"transparent"!==l?l:t.values.grey100,r="normal"===a?.3:.7;return"grey"===o?bu(e,n,r):uk(e,s,r)}catch(e){return s}},bd=e=>{var t;let{partitionKeys:n,partitionsMap:r,isSeriesHighlighted:i}=e,o=[],l=[];for(let e of n){let[n]=null!=(t=r.get(e))?t:[];n&&(i(n)?o.push(e):l.push(e))}return[...o,...l].reverse()},bp=e=>{let{measureReactContent:t,text:n,maxWidth:r,wrapper:i=e=>{let{children:t}=e;return t}}=e,o=e=>"".concat(e.trim(),"…"),l=e=>t((0,h.jsx)(i,{children:e})),a=n,{width:s}=l(a);for(;s>r&&a.length;)s=l(o(a=a.slice(0,-1))).width;return a.length<=1&&l(n.slice(0,a.length+1)).width<=r?n.slice(0,a.length+1):a!==n?o(a):n},bh=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"solid";switch(t){case"solid":return{strokeWidth:e,strokeLinejoin:"round",strokeLinecap:"round"};case"dashed":return{strokeWidth:e,strokeDasharray:"".concat(4*e," ").concat(3*e),strokeLinejoin:"round",strokeLinecap:"butt"};case"dotted":return{strokeWidth:e,strokeDasharray:"".concat(+e," ").concat(+e),strokeLinejoin:"round",strokeLinecap:"butt"}}},bg=e=>{let{theme:t,color:n,isDimmed:r,highlightStyle:i,backgroundColor:o,dimAmount:l="normal"}=e;if(!r)return n;let a="normal"===l?.3:.7;try{let e=o&&"transparent"!==o?o:t.values.grey100;return"grey"===i?bu(e,n,a):uk(e,n,a)}catch(e){return n}},bf="__DEFAULT_COLOR__";!function(e){e.X="x",e.Y="y"}(l||(l={})),function(e){e.Mekko="mekko",e.Timeseries="timeseries",e.Dynamic="dynamic",e.Continuous="continuous",e.Fixed="fixed"}(a||(a={}));let bm=e=>{if(!("ticks"in e))return!1;let t=e.domain();if("number"!=typeof t[0])return!1;let[n,r]=[Math.min(...t),Math.max(...t)];return n<0&&r>0},by=[...uJ,...uq,"waterfall","mekko"],bb=e=>{let{xType:t,isTimeseriesBarAxis:n,vizType:r,comboPlotType:i}=e;return"mekko"===r?a.Mekko:bx(r,t,n,i)?a.Timeseries:["line","areaStacked"].includes(r)?a.Dynamic:ck(t)?a.Continuous:a.Fixed},bx=(e,t,n,r)=>!!cA(t)&&(!!n||!by.includes(e)&&("combo"!==e||"lines"===r)),bC=[...uJ,...uq,"funnel","combo","heatmap","waterfall"],bv=(e,t,n,r)=>!(!cv(t)&&!cj(t))||r===l.X&&bC.includes(e)&&"lines"!==n,bj=["barStackedFill","columnStackedFill","mekko"],bA=e=>{var t,n;let{data:r,lowerKey:i,upperKey:o,dimensionSize:l}=e,a=i?r.getValues(i):[],s=o?r.getValues(o):[],u=null!=(t=(0,el.A)(a.map(e=>{var t;return fl(null!=(t=yj(e))?t:0)})))?t:0,c=null!=(n=(0,eo.A)(s.map(e=>{var t;return fl(null!=(t=yj(e))?t:0)})))?n:0;return(0,G.A)().range([0,l]).domain([u,c])},bw=e=>{let{vizType:t,orientation:n,comboPlotType:r,values:i=[],dataType:o,customDomain:l,range:a,innerPadding:s,outerPadding:u,useLogScale:c,customStartFrom:d,customEndAt:p}=e;if(bv(t,o,r,n))return bk({values:i,customDomain:l,range:a,innerPadding:s,outerPadding:u});if(ck(o))return bP({vizType:t,orientation:n,values:i,customDomain:l,range:a,useLogScale:c,comboPlotType:r,customStartFrom:d,customEndAt:p,dataType:o});if(cA(o))return bL({values:i,range:a});throw Error("Cannot create scale of type ".concat(o))},bk=e=>{let{values:t=[],customDomain:n,range:r,innerPadding:i=0,outerPadding:o=0}=e,l=(0,ea.A)(t,yC);return(0,U.A)().domain(n||l).range(r).paddingOuter(o).paddingInner(i)},bP=e=>{let{vizType:t,orientation:n,values:r,customDomain:i,customStartFrom:o,customEndAt:l,range:a,useLogScale:s,comboPlotType:u,dataType:c}=e,d=bT(i)?i:bI(r);if(s&&bD(d))return(0,W.A)().domain(d).range(a);let p=(0,G.A)().domain(d).range(a);bS(t,c,u,n)&&p.nice();let[h,g]=p.domain();return(o||l)&&h&&g&&p.domain([null!=o?o:h,null!=l?l:g]),p},bS=(e,t,n,r)=>{switch(r){case l.Y:return!bj.includes(e);case l.X:return bb({xType:t,isTimeseriesBarAxis:!1,vizType:e,comboPlotType:n})===a.Continuous;default:return!1}},bL=e=>{let{values:t,range:n}=e;return(0,N.A)().domain(bz(t)).range(n)},bM=e=>{let{vizType:t,comboPlotType:n,orientation:r,scale:i,dataType:o,getValue:l}=e;return bv(t,o,n,r)?e=>{var t;return null!=(t=i(yC(l(e))))?t:0}:ck(o)?e=>{let t=l(e);return i(null===t?0:fl(t))}:cA(o)?e=>{let t=l(e);return i(null===t?0:fa(t))}:()=>0},bO=e=>{let{scale:t,dataType:n}=e;return"ticks"in t?cA(n)?e=>{if(null===e)return null;try{return t(fa(e))}catch(e){return null}}:e=>{if(null===e)return null;try{return t(fl(e))}catch(e){return null}}:e=>{if(null===e)return null;let n=t(yC(e));return void 0===n?null:n+t.bandwidth()/2}},bT=e=>!!e&&2===e.length&&"number"==typeof e[0]&&"number"==typeof e[1],bD=e=>e[0]<0&&e[1]<0||e[0]>0&&e[1]>0,bI=e=>{let t=(0,ei.A)(e.filter(pM),fl);return void 0===t[0]||void 0===t[1]?[0,0]:t},bz=e=>{let t=(0,ei.A)(e.filter(pM),fa);return void 0===t[0]||void 0===t[1]?[]:t},bE="__%graphy%__y_start",bH="__%graphy%__y_end",bV="__%graphy%__waterfall_type",bF="start",bB="positive",bR="negative",bY="total",bG=[bF,bB,bR,bY],bU=(e,t,n)=>"heatmap"===e||n?[0,t]:[t,0],bW=e=>{let{barGroupKeys:t,xBandwidth:n}=e,r=(0,U.A)().domain(t).range([0,n]).paddingInner(.1*(t.length>1)).paddingOuter(0),i=r.bandwidth(),o=(e=>{let{barGroupXScale:t}=e;return e=>{var n;return null===e?0:null!=(n=t(e))?n:0}})({barGroupXScale:r});return{barGroupXScale:r,getBarGroupXPosition:o,barGroupXBandwidth:i}},bN="__DEFAULT_FILL_TYPE__",bK="__DEFAULT_LINE_TYPE__",bZ=M.createContext(null),bX=()=>{let e=(0,M.useContext)(bZ);if(null===e)throw Error("ColorScalesProvider must be present in the React tree");return e},b_=e=>{let{vizType:t,children:n,data:r,vizPalette:i,fillTypeRange:o,color:l,alpha:a,fillType:s,lineType:u,lineTypeRange:c}=e,d="waterfall"===t,p=(0,M.useMemo)(()=>(e=>{let{values:t,color:n,vizPalette:r=yt}=e,i=(0,Y.A)().domain(n&&0!==t.length?[...new Set(t)].map(yC):[bf]).range(r),o=(e=>{let{colorScale:t,color:n}=e;return e=>t(n?yC(e[n]):bf)})({colorScale:i,color:n});return{colorScale:i,getColor:o}})({values:d?bG:l?r.getValues(l):[],color:d?bV:l,vizPalette:i}),[l,r,d,i]),g=(0,M.useMemo)(()=>(e=>{let{data:t,alpha:n}=e,r=n?t.getValues(n):[],i=(0,G.A)().domain((()=>{let e=(0,ei.A)(r.filter(pM),fl);return void 0===e[0]&&void 0===e[1]?[0,0]:e})()).range([n?.05:1,1]),o=(e=>{let{alphaScale:t,alpha:n}=e;return e=>{if(!n)return 1;let r=e[n];return t(null===r?0:fl(r))}})({alphaScale:i,alpha:n});return{alphaScale:i,getAlpha:o,isAlphaDefined:!!n,alphaValues:r}})({data:r,alpha:a}),[a,r]),f=(0,M.useMemo)(()=>(e=>{let{values:t,fillType:n,range:r=["solid"]}=e,i=(0,Y.A)().domain(n&&0!==t.length?[...new Set(t)].map(yC):[bN]).range(r),o=(e=>{let{fillTypeScale:t,fillType:n}=e;return e=>t(n?yC(e[n]):bN)})({fillTypeScale:i,fillType:n});return{fillTypeScale:i,getFillType:o,isFillTypeDefined:void 0!==n}})({values:d?bG:s?r.getValues(s):[],fillType:d?bV:s,range:o}),[r,s,o,d]),m=(0,M.useMemo)(()=>(e=>{let{data:t,lineType:n,range:r=["solid"]}=e,i=(0,Y.A)().domain(!n?[bK]:[...new Set(t.getValues(n))].map(yC)).range(r),o=(e=>{let{lineTypeScale:t,lineType:n}=e;return e=>t(n?yC(e[n]):bK)})({lineTypeScale:i,lineType:n});return{lineTypeScale:i,getLineType:o,isLineTypeDefined:void 0!==n}})({data:r,lineType:u,range:c}),[r,u,c]),y=(0,M.useMemo)(()=>Object.assign(Object.assign(Object.assign(Object.assign({},p),g),f),m),[p,g,f,m]);return(0,h.jsx)(bZ.Provider,{value:y,children:n})},bQ=p.I4.div(nr()),bJ=p.I4.div(ni()),bq=p.I4.div(no()),b$=p.I4.div(nl()),b1=p.I4.div(na()),b0=p.I4.div(ns()),b2=e=>{let{children:t,titleContent:n,chartSummary:r,footerContent:i}=e;return(0,h.jsxs)(bQ,{children:[(0,h.jsxs)(bJ,{children:[n?(0,h.jsx)(bq,{children:n}):null,r?(0,h.jsx)(b1,{children:r}):null]}),(0,h.jsx)(b$,{children:t}),i?(0,h.jsx)(b0,{children:i}):null]})},b5=gF(null),b3=e=>gB(b5,t=>{if(!t)throw Error("usePlotDimensionValue must be used within PlotDimensionsContext.Provider");return t[e]}),b7=(e,t)=>{let n=(0,v.A)(e,["type",t],["asc","asc"]);return[...(0,er.Ay)(n,e=>null!==e.clusterValues?b9(e.clusterValues):e[t]).values()]},b9=e=>e.map(yC).join(","),b4=e=>!!e.length,b6=e=>null!==e;class b8 extends EventTarget{on(e,t){this.addEventListener(e,t)}off(e,t){this.removeEventListener(e,t)}emit(e,t){this.dispatchEvent(new CustomEvent(e,{detail:t}))}}let xe=(e,t)=>{let[n,r]=e,[i,o]=t;return Math.abs(Math.sqrt(Math.pow(n-i,2)+Math.pow(r-o,2)))},xt=e=>(e+2.5*Math.PI)%(2*Math.PI),xn=e=>e-Math.PI/2,xr=e=>{let{startAngle:t,endAngle:n,radius:r,offset:i=0,position:o=.5}=e,l=xn(Math.abs((n+t)*o)),a=r+i;return{x:Math.cos(l)*a,y:Math.sin(l)*a}},xi=e=>{switch(e.type){case"bar":return(e=>{let t=bn(e.yValue),n=(e.x0+e.x1)/2,r=(e.y0+e.y1)/2;return e.flipAxes?{x:"none"===e.stackType?t?e.x1:e.x0:n,y:r}:{x:n,y:"none"===e.stackType?t?e.y0:e.y1:r}})(e);case"point":case"line":return{x:e.xPosition,y:e.yPosition};case"tile":return{x:(e.x0+e.x1)/2,y:(e.y0+e.y1)/2};case"donut":case"pie":return(e=>{let t=xr({position:.5,radius:e.pieRadius,startAngle:e.startAngle,endAngle:e.endAngle,offset:-2});return{x:t.x+e.pieCenterX,y:t.y+e.pieCenterY}})(e)}},xo=e=>{switch(e.type){case"bar":case"tile":return{x:(e.x0+e.x1)/2,y:(e.y0+e.y1)/2};case"point":case"line":return{x:e.xPosition,y:e.yPosition};case"donut":case"pie":{let t=xr({position:.5,radius:e.pieRadius/2,startAngle:e.startAngle,endAngle:e.endAngle});return{x:t.x+e.pieCenterX,y:t.y+e.pieCenterY}}}},xl=e=>{let{rect:{x0:t,y0:n,x1:r,y1:i},x:o,y:l}=e;return o>=t&&o<=r&&l>=n&&l<=i},xa=e=>{let{dataPoints:t,relativePointerX:n,relativePointerY:r}=e,i=null,o=1/0,l=null,a=1/0,s=null;for(let e of t){!s&&yS(e)&&xl({rect:e,x:n,y:r})&&(s=e);let t=xi(e),u=xe([t.x,t.y],[n,r]);u{var t;let{hitboxes:n,relativePointerX:r,relativePointerY:i}=e;return null!=(t=n.find(e=>yI(e)?xl({rect:e.coords,x:r,y:i}):"pie"===e.type&&(e=>{if((e=>{let{pieCenterX:t,pieCenterY:n,pieRadius:r,relativePointerX:i,relativePointerY:o}=e;return xe([i,o],[t,n])<=r+10})(e)){let{startAngle:t,endAngle:n,relativePointerX:r,relativePointerY:i,pieCenterX:o,pieCenterY:l}=e,a=xt(Math.atan2(i-l,r-o));return a>=t&&a<=n}return!1})(Object.assign(Object.assign({},e),{relativePointerX:r,relativePointerY:i}))))?t:null},xu={activeHitbox:null,pointer:null,plotWidth:null,closestDataPointToAnnotation:null,distanceToAnnotation:1/0,closestGeomDataPoint:null,distanceToGeomMidpoint:1/0},xc=e=>{let{dataPoints:t,addons:n,children:r,flipAxes:i}=e,[o]=(0,M.useState)(()=>new b8),l=b3("plotWidth"),a=b3("plotHeight"),s=(0,M.useRef)(null),u=(0,M.useMemo)(()=>(e=>{let{dataPoints:t,plotWidth:n,plotHeight:r,flipAxes:i}=e,o=i?r:n,l=i?n:r;return t.every(yD)?b7(t,"xPosition").filter(b4).map(e=>{var t,n,r,i;return{type:"xy",dataPoints:e,coords:{x0:null==(t=(0,j.A)(e,"x0"))?void 0:t.x0,x1:null==(n=(0,A.A)(e,"x1"))?void 0:n.x1,y0:null==(r=(0,j.A)(e,"y0"))?void 0:r.y0,y1:null==(i=(0,A.A)(e,"y1"))?void 0:i.y1}}}):t.every(yT)?((e,t,n)=>0===e.length?[]:[{type:"xy",dataPoints:e,coords:{x0:0,x1:t,y0:0,y1:n}}])(t,n,r):t.every(e=>yS(e)||yP(e))?((e,t,n,r)=>{let i=r?"yPosition":"xPosition",o=b7(e,i).filter(b4);return o.map((e,l)=>{let a=(e=>{let{plotMainSize:t,isFirstCluster:n,isLastCluster:r,prevXPosition:i,currentMinXPosition:o,currentMaxXPosition:l,nextXPosition:a}=e,s=0;n||void 0===i||(s=o-(o-i)/2);let u=t;return r||void 0===a||(u=l+(a-l)/2),[s,u]})(Object.assign({plotMainSize:t,isFirstCluster:0===l,isLastCluster:l===o.length-1},(e=>{var t,n,r,i;let{clusters:o,clusterIndex:l,positionKey:a}=e,s=o[l],[u,c]=[o[l-1],o[l+1]],d=null==(t=(0,j.A)(s,a))?void 0:t[a],p=null==(n=(0,A.A)(s,a))?void 0:n[a];return{prevXPosition:null==(r=(0,A.A)(u,a))?void 0:r[a],currentMinXPosition:d,currentMaxXPosition:p,nextXPosition:null==(i=(0,j.A)(c,a))?void 0:i[a]}})({clusters:o,clusterIndex:l,positionKey:i}))),s={[r?"y0":"x0"]:a[0],[r?"y1":"x1"]:a[1],[r?"x0":"y0"]:0,[r?"x1":"y1"]:n};return s.x0===s.x1||s.y0===s.y1?null:{type:"xy",dataPoints:e,coords:s}}).filter(b6)})(t,o,l,i):t.every(yL)?t.map(e=>({type:"xy",dataPoints:[e],coords:{x0:e.x0,x1:e.x1,y0:e.y0,y1:e.y1}})):t.every(yO)?(e=>{var t;return null!=(t=e.map(e=>({type:"pie",dataPoints:[e],startAngle:e.startAngle,endAngle:e.endAngle,pieCenterX:e.pieCenterX,pieCenterY:e.pieCenterY,pieRadius:e.pieRadius})))?t:[]})(t):[]})({dataPoints:t,plotWidth:l,plotHeight:a,flipAxes:i}),[t,i,a,l]),c=(0,M.useMemo)(()=>!!n.length,[n]),{overlayState:d,overlayEventHandlers:p}=(e=>{let{events:t,getOverlayDimensions:n,hitboxes:r,plotWidth:i}=e,[o,l]=(0,M.useState)(xu);(0,M.useEffect)(()=>{l(e=>{var t;if(null===e.pointer)return e;let n=xs(Object.assign({hitboxes:r},e.pointer)),i=xa(Object.assign({dataPoints:null!=(t=null==n?void 0:n.dataPoints)?t:[]},e.pointer));return Object.assign(Object.assign({},e),i)})},[r]);let a=(0,M.useCallback)((e,t)=>{let r=0,o=0,l=1,a=n();return a&&(l=a.width/i,r=(e-a.left)/l,o=(t-a.top)/l),{relativePointerX:r,relativePointerY:o,pointerX:e,pointerY:t,scaleFactor:l}},[n,i]),s=(0,M.useCallback)(e=>{let{clientX:t,clientY:n}=e,o=a(t,n),s=xs(Object.assign({hitboxes:r},o));l(e=>Object.assign(Object.assign({},e),{pointer:o,activeHitbox:s,plotWidth:i}))},[a,r,i]),u=(0,M.useCallback)(e=>{var t;let{clientX:n,clientY:o}=e,s=a(n,o),u=xs(Object.assign({hitboxes:r},s)),c=xa(Object.assign({dataPoints:null!=(t=null==u?void 0:u.dataPoints)?t:[]},s));l(e=>Object.assign(Object.assign(Object.assign({},e),{pointer:s,activeHitbox:u,plotWidth:i}),c))},[a,r,i]),c=(0,M.useCallback)(e=>{var n;let{clientX:i,clientY:o}=e,l=a(i,o),s=xs(Object.assign({hitboxes:r},l)),u=xa(Object.assign({dataPoints:null!=(n=null==s?void 0:s.dataPoints)?n:[]},l));t.emit("click",Object.assign({pointer:l},u))},[t,a,r]),d=(0,M.useCallback)(e=>{let{clientX:t,clientY:n,pointerType:r}=e;l(e=>{let i=e.pointer,o=a(t,n);return"mouse"!==r&&(null==i?void 0:i.relativePointerX)===o.relativePointerX&&i.relativePointerY===o.relativePointerY?e:Object.assign(Object.assign({},e),{pointer:null,activeHitbox:null,plotWidth:null,closestDataPoint:null,closestGeomDataPoint:null})})},[a]);return(0,M.useEffect)(()=>{let e=e=>{let{clientX:t,clientY:n}=e;null===xs(Object.assign({hitboxes:r},a(t,n)))&&null!==o.activeHitbox&&l(e=>Object.assign(Object.assign({},e),{pointer:null,activeHitbox:null,plotWidth:null}))};return document.addEventListener("pointerup",e),()=>document.removeEventListener("pointerup",e)},[a,r,o.activeHitbox]),(0,M.useEffect)(()=>{let e=()=>{l(e=>Object.assign(Object.assign({},e),{pointer:null,activeHitbox:null,plotWidth:null}))};return t.on("deactivateHitbox",e),()=>t.off("deactivateHitbox",e)},[t]),{overlayState:o,overlayEventHandlers:{onPointerDown:s,onPointerMove:u,onPointerLeave:d,onClick:c}}})({events:o,getOverlayDimensions:(0,M.useCallback)(()=>{var e;return null==(e=s.current)?void 0:e.getBoundingClientRect()},[]),hitboxes:u,plotWidth:l}),g=(0,M.useMemo)(()=>({hitboxes:u,events:o,overlayState:d,overlayEventHandlers:p,overlayRef:s,isInteractive:c}),[u,o,d,p,c]);return(0,h.jsx)(yw.Provider,{value:g,children:r})},xd=(0,M.createContext)({setFocusedInteraction:()=>{},restoreDefaultInteraction:()=>{},isFocusedInteraction:!1,canUserInteractWithAddon:()=>!0,highlightEditorRef:{current:null},isInHighlightMode:!1,selectedHighlightType:null,_setSelectedHighlightType:()=>{},annotationsAddonRef:{current:null}}),xp=()=>(0,M.useContext)(xd),xh=e=>{let{children:t}=e,[n,r]=(0,M.useState)(null),i=(0,M.useRef)(null),[o,l]=(0,M.useState)(null),a=(0,M.useRef)(null),s=(0,M.useMemo)(()=>({setFocusedInteraction:e=>r(e),restoreDefaultInteraction:()=>r(null),isFocusedInteraction:null!==n,canUserInteractWithAddon:e=>null===n||n===e,highlightEditorRef:i,selectedHighlightType:o,isInHighlightMode:!!o,_setSelectedHighlightType:l,annotationsAddonRef:a}),[n,o]);return(0,h.jsx)(xd.Provider,{value:s,children:t})},xg=p.I4.div(nu(),mt.annotationsMenu),xf=p.I4.div(nc(),sU.modern,e=>{let{$isVisible:t}=e;return+!!t},e=>{let{$isSticky:t}=e;return t?"auto":"none"}),xm=p.I4.div(nd(),e=>{let{$isActive:t}=e;return t?"100%":"0"},e=>{let{$isActive:t}=e;return t?"100%":"0"},e=>{let{$isActive:t}=e;return t?mt.focusGuard:"auto"}),xy=(0,p.i7)(np()),xb=(0,p.i7)(nh()),xx=(0,p.i7)(ng()),xC=(0,p.i7)(nf()),xv=(0,p.I4)(em.UC)(nm(),hW,mt.annotationsMenu,h_(20),uv("overlayBackground"),h_(1),sE.sm,sz.lg,xx,sR.subtle,xC,sR.subtle,xy,sR.subtle,xb,sR.subtle),xj={xxs:h_(1),xs:h_(1.5),sm:h_(2),md:h_(2.5),lg:h_(3),xl:h_(4.5)},xA={primary:"textPrimary",muted:"textSecondary",critical:"alert",success:"success",subtle:"textDisabled",warning:"warning"},xw=p.I4.svg(ny(),e=>{let{$variant:t}=e;return t?uv(xA[t]):"currentColor"},uL,uv("grey70"),uM,uv("grey100"),uL,uv("grey70"),uM,uv("grey100")),xk=e=>{var{children:t,title:n,variant:r,size:i="sm"}=e,o=sJ(e,["children","title","variant","size"]);let l=(0,M.useId)(),a=xj[i];return(0,h.jsxs)(xw,Object.assign({$variant:"currentColor"===r?void 0:r,"aria-labelledby":n?l:void 0,height:a,width:a,fill:"none",viewBox:"0 0 24 24",role:"img"},o,{children:[n&&(0,h.jsx)("title",{id:l,children:n}),t]}))},xP=e=>(0,h.jsxs)(xk,Object.assign({},e,{children:[(0,h.jsx)("path",{opacity:.12,d:"M4.64564 15.9758L4 5H20L19.3544 15.9758C19.2296 18.0962 19.1673 19.1564 18.7147 19.961C18.3163 20.6692 17.7117 21.2394 16.9812 21.5955C16.1515 22 15.0895 22 12.9654 22H11.0346C8.91054 22 7.84851 22 7.01876 21.5955C6.28832 21.2394 5.68366 20.6692 5.28528 19.961C4.83273 19.1564 4.77037 18.0962 4.64564 15.9758Z",fill:"currentColor"}),(0,h.jsx)("path",{d:"M11 10C11 9.44773 10.5523 9.00001 10 9.00001C9.44771 9.00001 9 9.44773 9 10V17C9 17.5523 9.44771 18 10 18C10.5523 18 11 17.5523 11 17V10Z",fill:"currentColor"}),(0,h.jsx)("path",{d:"M14 9.00001C14.5523 9.00001 15 9.44773 15 10V14C15 14.5523 14.5523 15 14 15C13.4477 15 13 14.5523 13 14V10C13 9.44773 13.4477 9.00001 14 9.00001Z",fill:"currentColor"}),(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.7298 1.00001L10.6089 0.999823C10.1119 0.998656 9.61361 0.997486 9.16612 1.17348C8.77664 1.32667 8.43184 1.57518 8.16335 1.89624C7.85488 2.26511 7.69841 2.73821 7.54236 3.21006L7.5043 3.32484L7.27924 4.00001H2C1.44772 4.00001 1 4.44773 1 5.00001C1 5.5523 1.44772 6.00001 2 6.00001H3.0571L3.64979 16.0759C3.71008 17.101 3.75881 17.9294 3.85207 18.5997C3.94825 19.291 4.1011 19.8955 4.41369 20.4512C4.91167 21.3366 5.66749 22.0492 6.58054 22.4944C7.15369 22.7738 7.76614 22.8909 8.4619 22.9463C9.13649 23 9.96628 23 10.9932 23H13.0068C14.0337 23 14.8635 23 15.5381 22.9463C16.2339 22.8909 16.8463 22.7738 17.4195 22.4944C18.3325 22.0492 19.0883 21.3366 19.5863 20.4512C19.8989 19.8955 20.0517 19.291 20.1479 18.5997C20.2412 17.9294 20.2899 17.1011 20.3502 16.0761L20.9429 6.00001H22C22.5523 6.00001 23 5.5523 23 5.00001C23 4.44773 22.5523 4.00001 22 4.00001H16.7208L16.4957 3.32484L16.4576 3.21006C16.3016 2.73821 16.1451 2.26511 15.8366 1.89624C15.5682 1.57518 15.2234 1.32667 14.8339 1.17348C14.3864 0.997486 13.8881 0.998656 13.3911 0.999823L13.2702 1.00001H10.7298ZM15.9767 6.00001C15.9921 6.00037 16.0075 6.00037 16.023 6.00001H18.9394L18.3561 15.9171C18.2928 16.9933 18.248 17.742 18.167 18.324C18.0877 18.8941 17.9831 19.2219 17.8431 19.4707C17.5443 20.0019 17.0909 20.4295 16.543 20.6966C16.2864 20.8217 15.953 20.9069 15.3793 20.9526C14.7934 20.9993 14.0434 21 12.9654 21H11.0346C9.95657 21 9.20655 20.9993 8.62073 20.9526C8.04702 20.9069 7.71358 20.8217 7.45697 20.6966C6.90914 20.4295 6.45565 20.0019 6.15686 19.4707C6.01691 19.2219 5.9123 18.8941 5.83298 18.324C5.75199 17.742 5.70721 16.9933 5.64391 15.9171L5.06055 6.00001H7.97696C7.99245 6.00037 8.00791 6.00037 8.02332 6.00001H15.9767ZM14.6126 4.00001L14.5983 3.95729C14.3746 3.28624 14.3338 3.21675 14.3024 3.17926C14.2487 3.11505 14.1798 3.06534 14.1019 3.03471C14.0564 3.01682 13.9775 3.00001 13.2702 3.00001H10.7298C10.0225 3.00001 9.94362 3.01682 9.89814 3.03471C9.82024 3.06534 9.75128 3.11505 9.69758 3.17926C9.66623 3.21675 9.62535 3.28624 9.40167 3.95729L9.38743 4.00001H14.6126Z",fill:"currentColor"})]})),xS=(0,p.i7)(nb()),xL=p.I4.span(nx(),xS),xM=e=>{var{variant:t="subtle"}=e,n=sJ(e,["variant"]);return(0,h.jsx)(xL,{children:(0,h.jsx)(xk,Object.assign({role:"progressbar",variant:t},n,{children:(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5 2A1.5 1.5 0 0 1 12 .5C18.351.5 23.5 5.649 23.5 12S18.351 23.5 12 23.5.5 18.351.5 12a1.5 1.5 0 0 1 3 0A8.5 8.5 0 1 0 12 3.5 1.5 1.5 0 0 1 10.5 2Z",fill:"currentColor"})}))})},xO=e=>(0,h.jsxs)(xk,Object.assign({},e,{children:[(0,h.jsx)("path",{opacity:.12,d:"M2 12C2 14.5 5 20 12 20C14.588 20 16.6292 19.2483 18.1742 18.1743L14.1213 14.1213C13.5784 14.6642 12.8284 15 11.9999 15C10.3431 15 8.99991 13.6569 8.99991 12C8.99991 11.1716 9.33571 10.4216 9.87863 9.87866L5.82578 5.82581C3.19179 7.65679 2 10.4243 2 12Z",fill:"currentColor"}),(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.46967 2.46967C2.76256 2.17678 3.23744 2.17678 3.53033 2.46967L21.5303 20.4697C21.8232 20.7626 21.8232 21.2374 21.5303 21.5303C21.2374 21.8232 20.7626 21.8232 20.4697 21.5303L18.0737 19.1343C16.4783 20.1062 14.4611 20.75 12 20.75C8.28446 20.75 5.5928 19.2834 3.83476 17.4577C2.10654 15.663 1.25 13.485 1.25 12C1.25 10.3097 2.36419 7.67946 4.68861 5.74927L2.46967 3.53033C2.17678 3.23744 2.17678 2.76256 2.46967 2.46967ZM5.75447 6.81513C3.65136 8.50541 2.75 10.7939 2.75 12C2.75 13.015 3.39346 14.837 4.91524 16.4173C6.4072 17.9666 8.71554 19.25 12 19.25C14.0186 19.25 15.6642 18.7655 16.9768 18.0374L14.0679 15.1286C13.4752 15.521 12.7639 15.75 11.9999 15.75C9.92884 15.75 8.24991 14.0711 8.24991 12C8.24991 11.236 8.47892 10.5247 8.87133 9.93199L5.75447 6.81513ZM9.96907 11.0297C9.82845 11.3235 9.74991 11.6523 9.74991 12C9.74991 13.2426 10.7573 14.25 11.9999 14.25C12.3476 14.25 12.6764 14.1715 12.9702 14.0308L9.96907 11.0297Z",fill:"currentColor"}),(0,h.jsx)("path",{d:"M12 4.75C10.9651 4.75 10.0305 4.87735 9.19036 5.09792C9.03236 5.1394 8.87761 5.1842 8.72609 5.23211C8.33114 5.35697 7.90975 5.13803 7.78489 4.74309C7.66002 4.34814 7.87897 3.92675 8.27391 3.80189C8.44903 3.74652 8.62754 3.69485 8.80946 3.64709C9.77804 3.3928 10.8409 3.25 12 3.25C15.7155 3.25 18.4072 4.71662 20.1652 6.54227C21.8935 8.33695 22.75 10.515 22.75 12C22.75 13.0899 22.2895 14.5321 21.3966 15.9082C21.2795 16.0887 21.1545 16.2688 21.0215 16.4476C20.7743 16.78 20.3044 16.849 19.9721 16.6018C19.6397 16.3546 19.5707 15.8847 19.8179 15.5524C19.9317 15.3994 20.0385 15.2456 20.1383 15.0918C20.9206 13.886 21.25 12.7242 21.25 12C21.25 10.985 20.6065 9.16305 19.0848 7.58273C17.5928 6.03338 15.2845 4.75 12 4.75Z",fill:"currentColor"})]})),xT=e=>(0,h.jsxs)(xk,Object.assign({},e,{children:[(0,h.jsx)("path",{opacity:.12,fillRule:"evenodd",clipRule:"evenodd",d:"M11.9998 19.9166C18.9269 19.9166 21.8957 14.4739 21.8957 11.9999C21.8957 9.52596 18.9269 4.08325 11.9998 4.08325C5.07275 4.08325 2.104 9.52596 2.104 11.9999C2.104 14.4739 5.07275 19.9166 11.9998 19.9166ZM11.9997 14.9687C13.6393 14.9687 14.9685 13.6395 14.9685 11.9999C14.9685 10.3603 13.6393 9.03117 11.9997 9.03117C10.3602 9.03117 9.031 10.3603 9.031 11.9999C9.031 13.6395 10.3602 14.9687 11.9997 14.9687Z",fill:"currentColor"}),(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.84619 11.9999C2.84619 10.9954 3.48294 9.19252 4.98888 7.62866C6.4653 6.09546 8.74959 4.82544 11.9998 4.82544C15.2501 4.82544 17.5344 6.09546 19.0108 7.62866C20.5167 9.19252 21.1535 10.9954 21.1535 11.9999C21.1535 13.0044 20.5167 14.8073 19.0108 16.3712C17.5344 17.9044 15.2501 19.1744 11.9998 19.1744C8.74959 19.1744 6.4653 17.9044 4.98888 16.3712C3.48294 14.8073 2.84619 13.0044 2.84619 11.9999ZM11.9998 3.34106C8.323 3.34106 5.65938 4.7924 3.91965 6.59904C2.20944 8.37503 1.36182 10.5304 1.36182 11.9999C1.36182 13.4694 2.20944 15.6248 3.91965 17.4008C5.65938 19.2074 8.323 20.6588 11.9998 20.6588C15.6767 20.6588 18.3403 19.2074 20.08 17.4008C21.7902 15.6248 22.6379 13.4694 22.6379 11.9999C22.6379 10.5304 21.7902 8.37503 20.08 6.59904C18.3403 4.7924 15.6767 3.34106 11.9998 3.34106ZM9.77318 11.9999C9.77318 10.7702 10.7701 9.77336 11.9997 9.77336C13.2294 9.77336 14.2263 10.7702 14.2263 11.9999C14.2263 13.2296 13.2294 14.2265 11.9997 14.2265C10.7701 14.2265 9.77318 13.2296 9.77318 11.9999ZM11.9997 8.28898C9.95025 8.28898 8.28881 9.95042 8.28881 11.9999C8.28881 14.0494 9.95025 15.7109 11.9997 15.7109C14.0492 15.7109 15.7107 14.0494 15.7107 11.9999C15.7107 9.95042 14.0492 8.28898 11.9997 8.28898Z",fill:"currentColor"})]})),xD=e=>(0,h.jsx)(xk,Object.assign({},e,{children:(0,h.jsx)("path",{d:"M6 12H18",stroke:"currentColor",strokeWidth:2.0038,strokeMiterlimit:22.9256,strokeLinecap:"round",strokeLinejoin:"round"})})),xI=e=>(0,h.jsxs)(xk,Object.assign({},e,{children:[(0,h.jsx)("path",{d:"M10 5C10 6.10457 9.10457 7 8 7C6.89543 7 6 6.10457 6 5C6 3.89543 6.89543 3 8 3C9.10457 3 10 3.89543 10 5Z",fill:"currentColor"}),(0,h.jsx)("path",{d:"M10 12C10 13.1046 9.10457 14 8 14C6.89543 14 6 13.1046 6 12C6 10.8954 6.89543 10 8 10C9.10457 10 10 10.8954 10 12Z",fill:"currentColor"}),(0,h.jsx)("path",{d:"M10 19C10 20.1046 9.10457 21 8 21C6.89543 21 6 20.1046 6 19C6 17.8954 6.89543 17 8 17C9.10457 17 10 17.8954 10 19Z",fill:"currentColor"}),(0,h.jsx)("path",{d:"M18 5C18 6.10457 17.1046 7 16 7C14.8954 7 14 6.10457 14 5C14 3.89543 14.8954 3 16 3C17.1046 3 18 3.89543 18 5Z",fill:"currentColor"}),(0,h.jsx)("path",{d:"M18 12C18 13.1046 17.1046 14 16 14C14.8954 14 14 13.1046 14 12C14 10.8954 14.8954 10 16 10C17.1046 10 18 10.8954 18 12Z",fill:"currentColor"}),(0,h.jsx)("path",{d:"M18 19C18 20.1046 17.1046 21 16 21C14.8954 21 14 20.1046 14 19C14 17.8954 14.8954 17 16 17C17.1046 17 18 17.8954 18 19Z",fill:"currentColor"})]})),xz=e=>(0,h.jsxs)(xk,Object.assign({},e,{children:[(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 4C12.5523 4 13 4.44772 13 5V19C13 19.5523 12.5523 20 12 20C11.4477 20 11 19.5523 11 19V5C11 4.44772 11.4477 4 12 4Z",fill:"currentColor"}),(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.29289 11.2929C4.68342 10.9024 5.31658 10.9024 5.70711 11.2929L12 17.5858L18.2929 11.2929C18.6834 10.9024 19.3166 10.9024 19.7071 11.2929C20.0976 11.6834 20.0976 12.3166 19.7071 12.7071L12.7071 19.7071C12.3166 20.0976 11.6834 20.0976 11.2929 19.7071L4.29289 12.7071C3.90237 12.3166 3.90237 11.6834 4.29289 11.2929Z",fill:"currentColor"})]})),xE=e=>(0,h.jsxs)(xk,Object.assign({},e,{children:[(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 20C11.4477 20 11 19.5523 11 19L11 5C11 4.44771 11.4477 4 12 4C12.5523 4 13 4.44771 13 5L13 19C13 19.5523 12.5523 20 12 20Z",fill:"currentColor"}),(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.7071 12.7071C19.3166 13.0976 18.6834 13.0976 18.2929 12.7071L12 6.41421L5.70711 12.7071C5.31658 13.0976 4.68342 13.0976 4.29289 12.7071C3.90237 12.3166 3.90237 11.6834 4.29289 11.2929L11.2929 4.29289C11.6834 3.90237 12.3166 3.90237 12.7071 4.29289L19.7071 11.2929C20.0976 11.6834 20.0976 12.3166 19.7071 12.7071Z",fill:"currentColor"})]})),xH=e=>(0,h.jsxs)(xk,Object.assign({},e,{children:[(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 12C20 12.5523 19.5523 13 19 13L5 13C4.44771 13 4 12.5523 4 12C4 11.4477 4.44771 11 5 11H19C19.5523 11 20 11.4477 20 12Z",fill:"currentColor"}),(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.7071 4.29289C13.0976 4.68342 13.0976 5.31658 12.7071 5.70711L6.41421 12L12.7071 18.2929C13.0976 18.6834 13.0976 19.3166 12.7071 19.7071C12.3166 20.0976 11.6834 20.0976 11.2929 19.7071L4.29289 12.7071C3.90237 12.3166 3.90237 11.6834 4.29289 11.2929L11.2929 4.29289C11.6834 3.90237 12.3166 3.90237 12.7071 4.29289Z",fill:"currentColor"})]})),xV=e=>(0,h.jsxs)(xk,Object.assign({},e,{children:[(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 12C4 11.4477 4.44772 11 5 11L19 11C19.5523 11 20 11.4477 20 12C20 12.5523 19.5523 13 19 13H5C4.44772 13 4 12.5523 4 12Z",fill:"currentColor"}),(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.2929 19.7071C10.9024 19.3166 10.9024 18.6834 11.2929 18.2929L17.5858 12L11.2929 5.70711C10.9024 5.31658 10.9024 4.68342 11.2929 4.29289C11.6834 3.90237 12.3166 3.90237 12.7071 4.29289L19.7071 11.2929C20.0976 11.6834 20.0976 12.3166 19.7071 12.7071L12.7071 19.7071C12.3166 20.0976 11.6834 20.0976 11.2929 19.7071Z",fill:"currentColor"})]})),xF=e=>(0,h.jsxs)(xk,Object.assign({},e,{children:[(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.53033 2.53033C6.82322 2.23744 6.82322 1.76256 6.53033 1.46967C6.23744 1.17678 5.76256 1.17678 5.46967 1.46967L1.46967 5.46967C1.17678 5.76256 1.17678 6.23744 1.46967 6.53033L5.46967 10.5303C5.76256 10.8232 6.23744 10.8232 6.53033 10.5303C6.82322 10.2374 6.82322 9.76256 6.53033 9.46967L3.81066 6.75H16C16.4142 6.75 16.75 6.41421 16.75 6C16.75 5.58579 16.4142 5.25 16 5.25H3.81066L6.53033 2.53033Z",fill:"currentColor"}),(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.4697 14.5303C17.1768 14.2374 17.1768 13.7626 17.4697 13.4697C17.7626 13.1768 18.2374 13.1768 18.5303 13.4697L22.5303 17.4697C22.8232 17.7626 22.8232 18.2374 22.5303 18.5303L18.5303 22.5303C18.2374 22.8232 17.7626 22.8232 17.4697 22.5303C17.1768 22.2374 17.1768 21.7626 17.4697 21.4697L20.1893 18.75H8C7.58579 18.75 7.25 18.4142 7.25 18C7.25 17.5858 7.58579 17.25 8 17.25H20.1893L17.4697 14.5303Z",fill:"currentColor"})]})),xB=e=>(0,h.jsx)(xk,Object.assign({},e,{children:(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 4C5 3.44772 5.44772 3 6 3H14C15.3261 3 16.5979 3.52678 17.5355 4.46447C18.4732 5.40215 19 6.67392 19 8C19 9.32608 18.4732 10.5979 17.5355 11.5355C17.5025 11.5686 17.4691 11.6011 17.4352 11.6331C17.8352 11.8561 18.206 12.1349 18.5355 12.4645C19.4732 13.4021 20 14.6739 20 16C20 17.3261 19.4732 18.5978 18.5355 19.5355C17.5979 20.4732 16.3261 21 15 21H6C5.44772 21 5 20.5523 5 20V4ZM7 5V11H14C14.7956 11 15.5587 10.6839 16.1213 10.1213C16.6839 9.55871 17 8.79565 17 8C17 7.20435 16.6839 6.44129 16.1213 5.87868C15.5587 5.31607 14.7956 5 14 5H7ZM7 13V19H15C15.7956 19 16.5587 18.6839 17.1213 18.1213C17.6839 17.5587 18 16.7956 18 16C18 15.2043 17.6839 14.4413 17.1213 13.8787C16.5587 13.3161 15.7956 13 15 13H7Z",fill:"currentColor",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})})),xR=e=>(0,h.jsx)(xk,Object.assign({},e,{children:(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.977 3.00003H10C9.44772 3.00003 9 3.44774 9 4.00003C9 4.55231 9.44772 5.00003 10 5.00003H13.557L8.307 19H5C4.44772 19 4 19.4477 4 20C4 20.5523 4.44772 21 5 21H8.97666C8.99216 21.0004 9.00762 21.0004 9.02304 21H14C14.5523 21 15 20.5523 15 20C15 19.4477 14.5523 19 14 19H10.443L15.693 5.00003H19C19.5523 5.00003 20 4.55231 20 4.00003C20 3.44774 19.5523 3.00003 19 3.00003H15.0233C15.0078 2.99966 14.9924 2.99967 14.977 3.00003Z",fill:"currentColor"})})),xY=e=>(0,h.jsx)(xk,Object.assign({},e,{children:(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.125 3C5.67728 3 6.125 3.44772 6.125 4V11.3889C6.125 12.8013 6.68969 14.1571 7.69698 15.1578C8.70449 16.1587 10.0724 16.7222 11.5 16.7222C12.9276 16.7222 14.2955 16.1587 15.303 15.1578C16.3103 14.1571 16.875 12.8013 16.875 11.3889V4C16.875 3.44772 17.3227 3 17.875 3C18.4273 3 18.875 3.44772 18.875 4V11.3889C18.875 13.3359 18.0964 15.2019 16.7126 16.5767C15.329 17.9512 13.4539 18.7222 11.5 18.7222C9.54614 18.7222 7.67099 17.9512 6.28741 16.5767C4.90361 15.2019 4.125 13.3359 4.125 11.3889V4C4.125 3.44772 4.57272 3 5.125 3ZM2 23C2 22.4477 2.44772 22 3 22H20C20.5523 22 21 22.4477 21 23C21 23.5523 20.5523 24 20 24H3C2.44772 24 2 23.5523 2 23Z",fill:"currentColor"})})),xG=e=>(0,h.jsxs)(xk,Object.assign({},e,{children:[(0,h.jsx)("path",{opacity:.12,d:"M20.3891 4.53914C18.2412 2.39125 14.7588 2.39125 12.6109 4.53914L11.1967 5.95335C10.4286 6.72152 9.93511 7.66039 9.7164 8.64786C8.15775 8.51601 6.55361 9.04642 5.36094 10.2391L3.94673 11.6533C1.79884 13.8012 1.79884 17.2836 3.94673 19.4315C6.09461 21.5794 9.57702 21.5794 11.7249 19.4315L13.1391 18.0173C13.9073 17.2491 14.4007 16.3102 14.6194 15.3227C16.1781 15.4546 17.7822 14.9242 18.9749 13.7315L20.3891 12.3173C22.537 10.1694 22.537 6.68702 20.3891 4.53914Z",fill:"currentColor"}),(0,h.jsx)("path",{d:"M20.2462 3.82242C17.8908 1.39253 14.0587 1.39253 11.7033 3.82242L10.9926 4.55558C10.6083 4.95214 10.6181 5.58523 11.0147 5.96962C11.4112 6.35402 12.0443 6.34416 12.4287 5.9476L13.1394 5.21444C14.709 3.59519 17.2405 3.59519 18.8101 5.21444C20.3966 6.85116 20.3966 9.51733 18.8101 11.154L17.1154 12.9024C15.6968 14.3659 13.41 14.3659 11.9914 12.9024L11.718 12.6204C11.3336 12.2238 10.7005 12.214 10.304 12.5984C9.90743 12.9827 9.89757 13.6158 10.282 14.0124L10.5553 14.2944C12.7597 16.5685 16.3471 16.5685 18.5515 14.2944L20.2462 12.5461C22.5846 10.1336 22.5846 6.23485 20.2462 3.82242Z",fill:"currentColor"}),(0,h.jsx)("path",{d:"M6.88459 11.0976C8.30322 9.63412 10.59 9.63412 12.0086 11.0976L12.282 11.3796C12.6664 11.7762 13.2995 11.786 13.696 11.4016C14.0926 11.0172 14.1024 10.3842 13.718 9.9876L13.4447 9.70562C11.2403 7.43146 7.65294 7.43146 5.44853 9.70562L3.75383 11.4539C1.41539 13.8664 1.41539 17.7652 3.75383 20.1776C6.1092 22.6075 9.9413 22.6075 12.2967 20.1776L13.0074 19.4444C13.3917 19.0479 13.3819 18.4148 12.9853 18.0304C12.5888 17.646 11.9557 17.6558 11.5713 18.0524L10.8606 18.7856C9.29102 20.4048 6.75949 20.4048 5.18989 18.7856C3.60337 17.1488 3.60337 14.4827 5.18989 12.846L6.88459 11.0976Z",fill:"currentColor"})]})),xU=e=>(0,h.jsx)(xk,Object.assign({},e,{children:(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.7071 5.29289C21.0976 5.68342 21.0976 6.31658 20.7071 6.70711L9.70711 17.7071C9.31658 18.0976 8.68342 18.0976 8.29289 17.7071L3.29289 12.7071C2.90237 12.3166 2.90237 11.6834 3.29289 11.2929C3.68342 10.9024 4.31658 10.9024 4.70711 11.2929L9 15.5858L19.2929 5.29289C19.6834 4.90237 20.3166 4.90237 20.7071 5.29289Z",fill:"currentColor"})})),xW=e=>(0,h.jsxs)(xk,Object.assign({},e,{children:[(0,h.jsx)("path",{d:"M3 5C2.58579 5 2.25 5.33579 2.25 5.75C2.25 6.16421 2.58579 6.5 3 6.5H21C21.4142 6.5 21.75 6.16421 21.75 5.75C21.75 5.33579 21.4142 5 21 5L3 5Z",fill:"currentColor"}),(0,h.jsx)("path",{d:"M2.25 11.75C2.25 11.3358 2.58579 11 3 11H15C15.4142 11 15.75 11.3358 15.75 11.75C15.75 12.1642 15.4142 12.5 15 12.5H3C2.58579 12.5 2.25 12.1642 2.25 11.75Z",fill:"currentColor"}),(0,h.jsx)("path",{d:"M2.25 17.75C2.25 17.3358 2.58579 17 3 17L17 17C17.4142 17 17.75 17.3358 17.75 17.75C17.75 18.1642 17.4142 18.5 17 18.5L3 18.5C2.58579 18.5 2.25 18.1642 2.25 17.75Z",fill:"currentColor"})]})),xN=e=>(0,h.jsxs)(xk,Object.assign({},e,{children:[(0,h.jsx)("path",{d:"M3 5C2.58579 5 2.25 5.33579 2.25 5.75C2.25 6.16421 2.58579 6.5 3 6.5H21C21.4142 6.5 21.75 6.16421 21.75 5.75C21.75 5.33579 21.4142 5 21 5L3 5Z",fill:"currentColor"}),(0,h.jsx)("path",{d:"M5.25 11.75C5.25 11.3358 5.58579 11 6 11H18C18.4142 11 18.75 11.3358 18.75 11.75C18.75 12.1642 18.4142 12.5 18 12.5H6C5.58579 12.5 5.25 12.1642 5.25 11.75Z",fill:"currentColor"}),(0,h.jsx)("path",{d:"M2.25 17.75C2.25 17.3358 2.58579 17 3 17H21C21.4142 17 21.75 17.3358 21.75 17.75C21.75 18.1642 21.4142 18.5 21 18.5H3C2.58579 18.5 2.25 18.1642 2.25 17.75Z",fill:"currentColor"})]})),xK=e=>(0,h.jsxs)(xk,Object.assign({},e,{children:[(0,h.jsx)("path",{d:"M3 5C2.58579 5 2.25 5.33579 2.25 5.75C2.25 6.16421 2.58579 6.5 3 6.5H21C21.4142 6.5 21.75 6.16421 21.75 5.75C21.75 5.33579 21.4142 5 21 5L3 5Z",fill:"currentColor"}),(0,h.jsx)("path",{d:"M8.25 11.75C8.25 11.3358 8.58579 11 9 11H21C21.4142 11 21.75 11.3358 21.75 11.75C21.75 12.1642 21.4142 12.5 21 12.5H9C8.58579 12.5 8.25 12.1642 8.25 11.75Z",fill:"currentColor"}),(0,h.jsx)("path",{d:"M6.25 17.75C6.25 17.3358 6.58579 17 7 17H21C21.4142 17 21.75 17.3358 21.75 17.75C21.75 18.1642 21.4142 18.5 21 18.5H7C6.58579 18.5 6.25 18.1642 6.25 17.75Z",fill:"currentColor"})]})),xZ=(0,M.createContext)(null),xX=uD(xZ,"Graph"),x_=e=>{var{textColor:t="currentColor"}=e,n=sJ(e,["textColor"]);let r=mh(),i=xX(),o=r.values.grey60,l="string"==typeof t&&""!==t.trim()&&"currentColor"!==t;try{l&&(0,E.bJ)(i(t),r.values.grey100)>=1.3&&(o="none")}catch(e){}return(0,h.jsxs)(xk,Object.assign({},n,{children:[(0,h.jsx)("rect",{x:"3",y:"19.7395",width:"18",height:"3.375",rx:"1.125",fill:t,stroke:o,strokeWidth:1}),(0,h.jsx)("path",{d:"M18.75 3.05249C19.3713 3.05249 19.875 3.55617 19.875 4.17749V4.55249C19.8748 5.17366 19.3712 5.67749 18.75 5.67749H13.3125V16.365C13.3122 16.986 12.8086 17.4899 12.1875 17.49H11.8125C11.1913 17.49 10.6878 16.9861 10.6875 16.365V5.67749H5.25C4.62879 5.67749 4.12518 5.17366 4.125 4.55249V4.17749C4.125 3.55617 4.62868 3.05249 5.25 3.05249H18.75Z",fill:"currentColor"})]}))},xQ=e=>(0,h.jsxs)(xk,Object.assign({},e,{children:[(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 4.5V6L19 6V4.5L5 4.5Z",fill:"currentColor"}),(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 10L19 10V12.5L5 12.5V10Z",fill:"currentColor"}),(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 16L19 16V19.5H5V16Z",fill:"currentColor"})]})),xJ=e=>(0,h.jsx)(xk,Object.assign({fill:"none"},e,{children:(0,h.jsxs)("g",{fill:"currentColor",children:[(0,h.jsx)("circle",{cx:12,cy:12,opacity:.12,r:10}),(0,h.jsx)("path",{d:"m12 10c.5523 0 1 .4477 1 1v5c0 .5523-.4477 1-1 1s-1-.4477-1-1v-5c0-.5523.4477-1 1-1z"}),(0,h.jsx)("path",{d:"m12 9c.5523 0 1-.44772 1-1s-.4477-1-1-1-1 .44772-1 1 .4477 1 1 1z"}),(0,h.jsx)("path",{clipRule:"evenodd",d:"m1 12c0-6.07513 4.92487-11 11-11 6.0751 0 11 4.92487 11 11 0 6.0751-4.9249 11-11 11-6.07513 0-11-4.9249-11-11zm11-9c-4.97056 0-9 4.02944-9 9 0 4.9706 4.02944 9 9 9 4.9706 0 9-4.0294 9-9 0-4.97056-4.0294-9-9-9z",fillRule:"evenodd"})]})})),xq=e=>(0,h.jsxs)(xk,Object.assign({},e,{children:[(0,h.jsx)("circle",{opacity:.12,cx:12,cy:12,r:10,fill:"currentColor"}),(0,h.jsx)("path",{d:"M1 12C1 5.927 5.89003 1 12 1C15.627 1 18.3445 2.50029 20.1364 3.97863C20.4521 4.23906 20.7399 4.49945 21 4.75186V4C21 3.44772 21.4477 3 22 3C22.5523 3 23 3.44772 23 4V7.5C23 8.05228 22.5523 8.5 22 8.5H18.5C17.9477 8.5 17.5 8.05228 17.5 7.5C17.5 6.94772 17.9477 6.5 18.5 6.5H19.9184C19.6201 6.18935 19.2684 5.85532 18.8636 5.52137C17.3222 4.24971 15.0397 3 12 3C6.99886 3 3 7.0273 3 12C3 12.5523 2.55228 13 2 13C1.44772 13 1 12.5523 1 12Z",fill:"currentColor"}),(0,h.jsx)("path",{d:"M22 11C22.5523 11 23 11.4477 23 12C23 18.0751 18.0751 23 12 23C8.89758 23 6.4204 21.4572 4.76762 20.0001C4.49093 19.7562 4.2348 19.5125 4 19.2756V20C4 20.5523 3.55228 21 3 21C2.44772 21 2 20.5523 2 20V16.5C2 15.9477 2.44772 15.5 3 15.5H6.5C7.05228 15.5 7.5 15.9477 7.5 16.5C7.5 17.0523 7.05228 17.5 6.5 17.5H5.06873C5.36187 17.8175 5.70357 18.159 6.09024 18.4999C7.55675 19.7928 9.57957 21 12 21C16.9706 21 21 16.9706 21 12C21 11.4477 21.4477 11 22 11Z",fill:"currentColor"})]})),x$=e=>(0,h.jsx)(xk,Object.assign({},e,{children:(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 4C12.5523 4 13 4.44772 13 5V11H19C19.5523 11 20 11.4477 20 12C20 12.5523 19.5523 13 19 13H13V19C13 19.5523 12.5523 20 12 20C11.4477 20 11 19.5523 11 19V13H5C4.44772 13 4 12.5523 4 12C4 11.4477 4.44772 11 5 11H11V5C11 4.44772 11.4477 4 12 4Z",fill:"currentColor"})})),x1=e=>(0,h.jsx)(xk,Object.assign({},e,{children:(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.7687 3.21967C8.0616 3.51256 8.0616 3.98744 7.7687 4.28033L5.56066 6.48837H15.0872C18.8729 6.48837 21.9419 9.5573 21.9419 13.343C21.9419 17.1287 18.8729 20.1977 15.0872 20.1977H10.7267C10.3125 20.1977 9.97674 19.8619 9.97674 19.4477C9.97674 19.0335 10.3125 18.6977 10.7267 18.6977H15.0872C18.0445 18.6977 20.4419 16.3003 20.4419 13.343C20.4419 10.3857 18.0445 7.98837 15.0872 7.98837H5.56066L7.7687 10.1964C8.0616 10.4893 8.0616 10.9642 7.7687 11.2571C7.47581 11.55 7.00094 11.55 6.70804 11.2571L3.21967 7.7687C2.92678 7.47581 2.92678 7.00094 3.21967 6.70804L6.70804 3.21967C7.00094 2.92678 7.47581 2.92678 7.7687 3.21967Z",fill:"currentColor"})})),x0=e=>(0,h.jsx)(xk,Object.assign({},e,{children:(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.29289 8.29289C5.68342 7.90237 6.31658 7.90237 6.70711 8.29289L12 13.5858L17.2929 8.29289C17.6834 7.90237 18.3166 7.90237 18.7071 8.29289C19.0976 8.68342 19.0976 9.31658 18.7071 9.70711L12.7071 15.7071C12.3166 16.0976 11.6834 16.0976 11.2929 15.7071L5.29289 9.70711C4.90237 9.31658 4.90237 8.68342 5.29289 8.29289Z",fill:"currentColor"})})),x2=e=>(0,h.jsx)(xk,Object.assign({},e,{children:(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.2929 8.29289C11.6834 7.90237 12.3166 7.90237 12.7071 8.29289L18.7071 14.2929C19.0976 14.6834 19.0976 15.3166 18.7071 15.7071C18.3166 16.0976 17.6834 16.0976 17.2929 15.7071L12 10.4142L6.70711 15.7071C6.31658 16.0976 5.68342 16.0976 5.29289 15.7071C4.90237 15.3166 4.90237 14.6834 5.29289 14.2929L11.2929 8.29289Z",fill:"currentColor"})})),x5=e=>(0,h.jsx)(xk,Object.assign({},e,{children:(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 6C6.39052 5.60948 7.02369 5.60948 7.41421 6L12 10.5858L16.5858 5.99999C16.9763 5.60946 17.6095 5.60946 18 5.99999C18.3905 6.39051 18.3905 7.02367 18 7.4142L13.4142 12L18 16.5858C18.3905 16.9763 18.3905 17.6095 18 18C17.6095 18.3905 16.9763 18.3905 16.5858 18L12 13.4142L7.4142 18C7.02368 18.3905 6.39051 18.3905 5.99999 18C5.60946 17.6095 5.60946 16.9763 5.99999 16.5858L10.5858 12L6 7.41421C5.60947 7.02369 5.60947 6.39052 6 6Z",fill:"currentColor"})})),x3=e=>(0,h.jsxs)(xk,Object.assign({},e,{children:[(0,h.jsx)("path",{d:"M0 19.28V18.44H0.38C0.646667 18.44 0.86 18.4 1.02 18.32C1.18 18.24 1.32667 18.0867 1.46 17.86C1.59333 17.6333 1.74 17.3067 1.9 16.88L6.34 5H7.9L12.42 17.38C12.5267 17.66 12.64 17.88 12.76 18.04C12.88 18.1867 13.0267 18.2933 13.2 18.36C13.3733 18.4133 13.5867 18.44 13.84 18.44H14.1V19.28H8.6V18.44H9.06C9.46 18.44 9.76 18.3667 9.96 18.22C10.16 18.06 10.26 17.8133 10.26 17.48C10.26 17.4 10.2533 17.3267 10.24 17.26C10.2267 17.18 10.2067 17.1 10.18 17.02C10.1667 16.9267 10.14 16.8333 10.1 16.74L9.3 14.5H4.04L3.28 16.6C3.24 16.7067 3.20667 16.8133 3.18 16.92C3.15333 17.0267 3.13333 17.1267 3.12 17.22C3.10667 17.3 3.1 17.38 3.1 17.46C3.1 17.7933 3.20667 18.04 3.42 18.2C3.64667 18.36 3.98 18.44 4.42 18.44H4.88V19.28H0ZM4.42 13.5H8.94L7.7 10C7.56667 9.6 7.43333 9.22 7.3 8.86C7.18 8.5 7.06667 8.15333 6.96 7.82C6.86667 7.48667 6.78 7.16 6.7 6.84C6.64667 7.08 6.58667 7.31333 6.52 7.54C6.46667 7.76667 6.4 8 6.32 8.24C6.25333 8.46667 6.17333 8.71333 6.08 8.98C6 9.23333 5.9 9.51333 5.78 9.82L4.42 13.5Z",fill:"currentColor"}),(0,h.jsx)("path",{d:"M18.1996 19.48C17.6129 19.48 17.0796 19.3667 16.5996 19.14C16.1329 18.9 15.7662 18.5467 15.4996 18.08C15.2329 17.6 15.0996 17 15.0996 16.28C15.0996 15.2133 15.4729 14.4267 16.2196 13.92C16.9796 13.4133 18.1262 13.1333 19.6596 13.08L21.3196 13.02V11.82C21.3196 11.34 21.2796 10.92 21.1996 10.56C21.1196 10.1867 20.9462 9.89333 20.6796 9.68C20.4129 9.46667 20.0062 9.36 19.4596 9.36C18.9529 9.36 18.5662 9.45333 18.2996 9.64C18.0329 9.82667 17.8529 10.0867 17.7596 10.42C17.6796 10.74 17.6396 11.1133 17.6396 11.54C17.0796 11.54 16.6529 11.4467 16.3596 11.26C16.0796 11.06 15.9396 10.7333 15.9396 10.28C15.9396 9.81333 16.0996 9.44 16.4196 9.16C16.7529 8.88 17.1929 8.68 17.7396 8.56C18.2862 8.42667 18.8862 8.36 19.5396 8.36C20.7662 8.36 21.6796 8.62 22.2796 9.14C22.8929 9.66 23.1996 10.5533 23.1996 11.82V17C23.1996 17.3733 23.2396 17.6667 23.3196 17.88C23.3996 18.08 23.5329 18.2267 23.7196 18.32C23.9062 18.4 24.1462 18.44 24.4396 18.44H24.4996V19.28H21.7996L21.4796 17.56H21.3196C21.0396 17.9333 20.7662 18.2667 20.4996 18.56C20.2329 18.84 19.9196 19.0667 19.5596 19.24C19.2129 19.4 18.7596 19.48 18.1996 19.48ZM18.6596 18.24C19.2062 18.24 19.6729 18.1267 20.0596 17.9C20.4596 17.6733 20.7662 17.3533 20.9796 16.94C21.2062 16.5133 21.3196 16.02 21.3196 15.46V13.84L20.0396 13.9C19.2796 13.9267 18.6796 14.04 18.2396 14.24C17.8129 14.44 17.5062 14.72 17.3196 15.08C17.1329 15.4267 17.0396 15.86 17.0396 16.38C17.0396 16.7933 17.0996 17.14 17.2196 17.42C17.3396 17.6867 17.5196 17.8933 17.7596 18.04C17.9996 18.1733 18.2996 18.24 18.6596 18.24Z",fill:"currentColor"})]})),x7=e=>(0,h.jsxs)(xk,Object.assign({},e,{children:[(0,h.jsx)("path",{d:"M2.38 19H0L5.24 5H7.98L13.2 19H10.74L9.42 15.54H3.68L2.38 19ZM6.54 7.48L4.32 13.58H8.78L6.54 7.48Z",fill:"currentColor"}),(0,h.jsx)("path",{d:"M23.5197 17.12H23.9597V19H22.8197C21.5664 19 20.9397 18.4533 20.9397 17.36C20.1664 18.5333 19.0397 19.12 17.5597 19.12C16.4131 19.12 15.4931 18.8533 14.7997 18.32C14.1064 17.7867 13.7597 17.0533 13.7597 16.12C13.7597 15.0667 14.1331 14.26 14.8797 13.7C15.6264 13.1267 16.7131 12.84 18.1397 12.84H20.7197V12.22C20.7197 11.6467 20.5197 11.2 20.1197 10.88C19.7331 10.5467 19.1864 10.38 18.4797 10.38C17.8531 10.38 17.3331 10.52 16.9197 10.8C16.5064 11.0667 16.2597 11.4267 16.1797 11.88H14.0597C14.1664 10.88 14.6197 10.0933 15.4197 9.52C16.2331 8.93333 17.2864 8.64 18.5797 8.64C19.9531 8.64 21.0064 8.96 21.7397 9.6C22.4864 10.24 22.8597 11.16 22.8597 12.36V16.46C22.8597 16.7133 22.9131 16.8867 23.0197 16.98C23.1264 17.0733 23.2931 17.12 23.5197 17.12ZM20.7197 14.8V14.44H18.0397C16.6531 14.44 15.9597 14.9533 15.9597 15.98C15.9597 16.42 16.1264 16.7733 16.4597 17.04C16.8064 17.3067 17.2731 17.44 17.8597 17.44C18.7531 17.44 19.4464 17.2 19.9397 16.72C20.4464 16.24 20.7064 15.6 20.7197 14.8Z",fill:"currentColor"})]})),x9=e=>(0,h.jsxs)(xk,Object.assign({},e,{children:[(0,h.jsx)("path",{d:"M2.32955 19.5455H0L5.23438 5H7.76989L13.0043 19.5455H10.6747L6.5625 7.64205H6.44886L2.32955 19.5455ZM2.72017 13.8494H10.277V15.696H2.72017V13.8494Z",fill:"currentColor"}),(0,h.jsx)("path",{d:"M18.107 19.7869C17.4157 19.7869 16.7907 19.6591 16.232 19.4034C15.6733 19.143 15.2306 18.7666 14.9039 18.2741C14.5819 17.7817 14.4209 17.178 14.4209 16.4631C14.4209 15.8475 14.5393 15.3409 14.7761 14.9432C15.0128 14.5455 15.3324 14.2306 15.7349 13.9986C16.1373 13.7666 16.5871 13.5914 17.0843 13.473C17.5815 13.3546 18.0881 13.2647 18.6042 13.2031C19.2576 13.1274 19.7879 13.0658 20.1951 13.0185C20.6023 12.9664 20.8982 12.8835 21.0829 12.7699C21.2675 12.6563 21.3599 12.4716 21.3599 12.2159V12.1662C21.3599 11.5459 21.1847 11.0653 20.8343 10.7244C20.4886 10.3835 19.9726 10.2131 19.286 10.2131C18.571 10.2131 18.0076 10.3717 17.5957 10.6889C17.1885 11.0014 16.9067 11.3494 16.7505 11.733L14.7547 11.2784C14.9915 10.6155 15.3371 10.0805 15.7917 9.6733C16.251 9.26136 16.7789 8.96307 17.3755 8.77841C17.9721 8.58902 18.5994 8.49432 19.2576 8.49432C19.6932 8.49432 20.1548 8.5464 20.6425 8.65057C21.135 8.75 21.5942 8.93466 22.0204 9.20455C22.4512 9.47443 22.804 9.86032 23.0786 10.3622C23.3532 10.8594 23.4905 11.5057 23.4905 12.3011V19.5455H21.4167V18.054H21.3315C21.1941 18.3286 20.9882 18.5985 20.7136 18.8636C20.4389 19.1288 20.0862 19.349 19.6553 19.5241C19.2244 19.6993 18.7083 19.7869 18.107 19.7869ZM18.5687 18.0824C19.1558 18.0824 19.6577 17.9664 20.0744 17.7344C20.4958 17.5024 20.8154 17.1993 21.0332 16.8253C21.2557 16.4465 21.367 16.0417 21.367 15.6108V14.2045C21.2912 14.2803 21.1444 14.3513 20.9266 14.4176C20.7136 14.4792 20.4697 14.5336 20.1951 14.581C19.9205 14.6236 19.6529 14.6638 19.3925 14.7017C19.1321 14.7348 18.9143 14.7633 18.7391 14.7869C18.3272 14.839 17.9508 14.9266 17.6099 15.0497C17.2737 15.1728 17.0038 15.3504 16.8002 15.5824C16.6013 15.8097 16.5019 16.1127 16.5019 16.4915C16.5019 17.017 16.696 17.4148 17.0843 17.6847C17.4726 17.9498 17.9673 18.0824 18.5687 18.0824Z",fill:"currentColor"})]})),x4=e=>(0,h.jsxs)(xk,Object.assign({},e,{children:[(0,h.jsx)("path",{d:"M6.788 19.3735C5.73033 19.3735 4.84367 19.1297 4.128 18.642C3.41867 18.148 2.88667 17.369 2.532 16.305C2.17733 15.2347 2 13.835 2 12.106C2 10.4023 2.17733 9.03117 2.532 7.9925C2.88667 6.9475 3.41867 6.1875 4.128 5.7125C4.84367 5.2375 5.73033 5 6.788 5C7.852 5 8.73867 5.2375 9.448 5.7125C10.1573 6.1875 10.6893 6.9475 11.044 7.9925C11.3987 9.03117 11.576 10.4023 11.576 12.106C11.576 13.835 11.3987 15.2347 11.044 16.305C10.6893 17.369 10.1573 18.148 9.448 18.642C8.73867 19.1297 7.852 19.3735 6.788 19.3735ZM6.788 17.7965C7.27567 17.7965 7.70633 17.7047 8.08 17.521C8.46 17.3373 8.77667 17.0302 9.03 16.5995C9.28333 16.1688 9.47333 15.5893 9.6 14.861C9.733 14.1263 9.7995 13.208 9.7995 12.106C9.7995 11.023 9.733 10.1268 9.6 9.4175C9.47333 8.70183 9.28017 8.13817 9.0205 7.7265C8.76717 7.3085 8.45367 7.014 8.08 6.843C7.70633 6.66567 7.27567 6.577 6.788 6.577C6.30033 6.577 5.86967 6.66567 5.496 6.843C5.12233 7.014 4.80567 7.3085 4.546 7.7265C4.29267 8.13817 4.0995 8.70183 3.9665 9.4175C3.83983 10.1268 3.7765 11.023 3.7765 12.106C3.7765 13.208 3.83983 14.1263 3.9665 14.861C4.0995 15.5893 4.29267 16.1688 4.546 16.5995C4.80567 17.0302 5.12233 17.3373 5.496 17.521C5.86967 17.7047 6.30033 17.7965 6.788 17.7965ZM6.788 13.455C6.45233 13.4487 6.21167 13.3347 6.066 13.113C5.92667 12.885 5.857 12.562 5.857 12.144C5.857 11.7323 5.92667 11.4125 6.066 11.1845C6.21167 10.9565 6.45233 10.8425 6.788 10.8425C7.12367 10.8425 7.36117 10.9565 7.5005 11.1845C7.64617 11.4125 7.719 11.7323 7.719 12.144C7.719 12.562 7.64617 12.885 7.5005 13.113C7.36117 13.3347 7.12367 13.4487 6.788 13.455Z",fill:"currentColor"}),(0,h.jsx)("path",{d:"M18.1787 19.3735C17.121 19.3735 16.2343 19.1297 15.5187 18.642C14.8093 18.148 14.2773 17.369 13.9227 16.305C13.568 15.2347 13.3907 13.835 13.3907 12.106C13.3907 10.4023 13.568 9.03117 13.9227 7.9925C14.2773 6.9475 14.8093 6.1875 15.5187 5.7125C16.2343 5.2375 17.121 5 18.1787 5C19.2427 5 20.1293 5.2375 20.8387 5.7125C21.548 6.1875 22.08 6.9475 22.4347 7.9925C22.7893 9.03117 22.9667 10.4023 22.9667 12.106C22.9667 13.835 22.7893 15.2347 22.4347 16.305C22.08 17.369 21.548 18.148 20.8387 18.642C20.1293 19.1297 19.2427 19.3735 18.1787 19.3735ZM18.1787 17.7965C18.6663 17.7965 19.097 17.7047 19.4707 17.521C19.8507 17.3373 20.1673 17.0302 20.4207 16.5995C20.674 16.1688 20.864 15.5893 20.9907 14.861C21.1237 14.1263 21.1902 13.208 21.1902 12.106C21.1902 11.023 21.1237 10.1268 20.9907 9.4175C20.864 8.70183 20.6708 8.13817 20.4112 7.7265C20.1578 7.3085 19.8443 7.014 19.4707 6.843C19.097 6.66567 18.6663 6.577 18.1787 6.577C17.691 6.577 17.2603 6.66567 16.8867 6.843C16.513 7.014 16.1963 7.3085 15.9367 7.7265C15.6833 8.13817 15.4902 8.70183 15.3572 9.4175C15.2305 10.1268 15.1672 11.023 15.1672 12.106C15.1672 13.208 15.2305 14.1263 15.3572 14.861C15.4902 15.5893 15.6833 16.1688 15.9367 16.5995C16.1963 17.0302 16.513 17.3373 16.8867 17.521C17.2603 17.7047 17.691 17.7965 18.1787 17.7965ZM18.1787 13.455C17.843 13.4487 17.6023 13.3347 17.4567 13.113C17.3173 12.885 17.2477 12.562 17.2477 12.144C17.2477 11.7323 17.3173 11.4125 17.4567 11.1845C17.6023 10.9565 17.843 10.8425 18.1787 10.8425C18.5143 10.8425 18.7518 10.9565 18.8912 11.1845C19.0368 11.4125 19.1097 11.7323 19.1097 12.144C19.1097 12.562 19.0368 12.885 18.8912 13.113C18.7518 13.3347 18.5143 13.4487 18.1787 13.455Z",fill:"currentColor"})]})),x6=e=>(0,h.jsxs)(xk,Object.assign({},e,{children:[(0,h.jsx)("path",{d:"M1 16.1935L1.22491 16.0205L1.24221 15.6572C1.53055 14.9536 1.82466 14.2789 2.12454 13.633C2.43595 12.9871 2.75889 12.3239 3.09337 11.6434C3.19718 11.4243 3.30098 11.2051 3.40478 10.986C3.52012 10.7669 3.62969 10.542 3.73349 10.3113C3.72196 10.2651 3.71619 10.219 3.71619 10.1729C3.71619 10.1152 3.72773 10.0518 3.75079 9.98257C3.91227 9.7519 4.03914 9.54429 4.13141 9.35975C4.23521 9.17521 4.33325 8.9849 4.42552 8.78883C4.52932 8.55816 4.63889 8.32748 4.75423 8.09681C4.8811 7.86613 5.03681 7.64122 5.22135 7.42208L5.34245 7.24908L5.53276 7.26638C5.57889 7.24331 5.62503 7.22601 5.67116 7.21448C5.72883 7.19141 5.79803 7.17988 5.87877 7.17988L6.19018 7.23178C6.57079 7.05877 6.90527 6.8108 7.19361 6.48785C7.49349 6.15337 7.79337 5.75546 8.09325 5.29411L8.30085 5L8.57766 5.17301C8.63533 5.20761 8.7276 5.24221 8.85447 5.27681C8.98134 5.31141 9.11398 5.35178 9.25239 5.39791C9.49459 5.45558 9.73103 5.52478 9.96171 5.60552C10.1924 5.67472 10.3712 5.77276 10.498 5.89963L10.5845 6.05534C10.6076 6.18221 10.6249 6.29754 10.6364 6.40135C10.6595 6.50515 10.6826 6.60896 10.7056 6.71276C10.7518 6.95497 10.7921 7.19718 10.8267 7.43938C10.8613 7.67006 10.8844 7.92957 10.8959 8.21791C10.9536 8.44859 11.0055 8.68503 11.0516 8.92724C11.1093 9.15791 11.1612 9.38858 11.2074 9.61926C11.265 9.95374 11.3285 10.2767 11.3977 10.5881C11.4669 10.888 11.5591 11.1763 11.6745 11.4531C11.7898 11.4531 11.859 11.4589 11.8821 11.4704C12.0205 11.4128 12.182 11.3782 12.3665 11.3666L12.5914 11.3493L12.6606 11.5569C12.6837 11.5915 12.7125 11.6261 12.7471 11.6607C12.7817 11.6953 12.8221 11.7299 12.8682 11.7645C13.0527 11.7761 13.1854 11.8164 13.2661 11.8856C13.3584 11.9433 13.4334 12.001 13.491 12.0586C13.5141 12.0817 13.5429 12.1105 13.5775 12.1451C13.6121 12.1682 13.641 12.1855 13.664 12.197L13.9754 12.3182L13.8024 12.6469C13.6756 12.8891 13.4795 13.1255 13.2142 13.3562C12.9605 13.5869 12.6721 13.7772 12.3492 13.9271C12.3723 14.0078 12.3838 14.0828 12.3838 14.152C12.3953 14.2212 12.4126 14.302 12.4357 14.3942C12.4818 14.6249 12.5164 14.8671 12.5395 15.1208C12.5741 15.3631 12.5741 15.6168 12.5395 15.8821C12.4242 16.182 12.2858 16.453 12.1243 16.6952C11.9743 16.9259 11.7898 17.1393 11.5707 17.3353C11.3631 17.5199 11.1266 17.6756 10.8613 17.8024C10.5961 17.9178 10.3193 17.9812 10.0309 17.9927C9.86944 17.9581 9.74834 17.9178 9.6676 17.8716C9.5984 17.8255 9.53496 17.7794 9.47729 17.7332C9.38502 17.664 9.31005 17.6179 9.25239 17.5948L9.02748 17.491L9.09668 17.2315C9.13128 17.1393 9.12551 17.0585 9.07938 16.9893C9.04478 16.9201 8.96404 16.8278 8.83717 16.7125C8.79104 16.6779 8.75067 16.6433 8.71607 16.6087C8.68147 16.5626 8.6411 16.5164 8.59496 16.4703L8.24895 16.0724L8.81987 15.9167C9.16588 15.8244 9.39656 15.7091 9.51189 15.5707C9.62723 15.4207 9.67337 15.1612 9.6503 14.7921C9.36196 14.7345 9.12551 14.7287 8.94097 14.7748C8.75643 14.8094 8.57189 14.8498 8.38735 14.8959C8.12208 14.9651 7.86257 15.0286 7.60883 15.0862C7.35509 15.1324 7.07828 15.1555 6.7784 15.1555C6.58233 15.1555 6.37472 15.1382 6.15558 15.1035L5.96527 15.0862L5.91337 14.8959C5.91337 14.8729 5.89607 14.8498 5.86147 14.8267C5.8384 14.7921 5.81533 14.7633 5.79227 14.7402C5.7346 14.671 5.66539 14.5788 5.58466 14.4634C5.50392 14.3481 5.48662 14.2039 5.53276 14.0309C5.45202 13.904 5.40589 13.7714 5.39435 13.633C5.34822 13.7253 5.30785 13.8175 5.27325 13.9098C5.25018 13.9905 5.22711 14.0713 5.20405 14.152L5.13484 14.3769L4.90993 14.4115C4.88687 14.4346 4.8638 14.4692 4.84073 14.5153C4.8292 14.5615 4.8292 14.5961 4.84073 14.6191L4.90993 14.8094L4.73693 14.9651C4.71386 14.9997 4.68503 15.0286 4.65043 15.0516C4.61582 15.0747 4.58699 15.0978 4.56392 15.1208C4.54086 15.2477 4.50625 15.3688 4.46012 15.4842C4.42552 15.5995 4.38515 15.7148 4.33902 15.8302C4.28135 16.0147 4.22368 16.1935 4.16601 16.3665C4.11987 16.5395 4.09681 16.7125 4.09681 16.8855L4.0276 17.1104C3.96994 17.2027 3.89497 17.2719 3.8027 17.318C3.72196 17.3642 3.64122 17.4045 3.56049 17.4391C3.44515 17.4853 3.36441 17.5314 3.31828 17.5775L3.26638 17.8024L3.00687 17.837C2.85693 17.8716 2.74736 17.8947 2.67816 17.9062C2.62049 17.9178 2.55129 17.9235 2.47055 17.9235L2.24564 17.9062C2.10724 17.7678 1.9919 17.664 1.89963 17.5948C1.81889 17.5141 1.72086 17.4449 1.60552 17.3872L1.50172 17.2488C1.45558 17.1566 1.42675 17.0758 1.41521 17.0066C1.40368 16.9259 1.38638 16.8451 1.36331 16.7644C1.34025 16.6145 1.30564 16.5107 1.25951 16.453L1 16.1935ZM6.51889 11.6953C6.35742 11.926 6.20171 12.1682 6.05177 12.422C6.13251 12.4104 6.20748 12.4047 6.27668 12.4047C6.35742 12.4047 6.43815 12.3989 6.51889 12.3874C6.92257 12.3643 7.29742 12.3355 7.64343 12.3009C7.98944 12.2663 8.36429 12.2086 8.76797 12.1278C8.6757 11.7011 8.57189 11.2686 8.45656 10.8303C8.35275 10.3805 8.23742 9.93067 8.11055 9.48085L8.02404 9.65386C7.7357 9.96527 7.45889 10.2997 7.19361 10.6573C6.92834 11.0148 6.7092 11.3551 6.53619 11.678L6.51889 11.6953Z",fill:"currentColor"}),(0,h.jsx)("path",{d:"M23.0392 16.3838C22.97 16.5799 22.8662 16.7817 22.7278 16.9893C22.6009 17.1854 22.4452 17.3642 22.2607 17.5256C22.0877 17.6756 21.8916 17.8024 21.6724 17.9062C21.4533 18.01 21.2226 18.0677 20.9804 18.0793C20.8305 18.0447 20.7267 18.0043 20.669 17.9581C20.6229 17.9235 20.571 17.8889 20.5133 17.8543C20.4787 17.8313 20.4441 17.814 20.4095 17.8024C20.3864 17.7794 20.3634 17.7621 20.3403 17.7505L20.1327 17.664L20.2019 17.4391C20.225 17.3469 20.2192 17.2777 20.1846 17.2315C20.15 17.1739 20.0808 17.0989 19.977 17.0066C19.9424 16.972 19.9078 16.9374 19.8732 16.9028C19.8386 16.8682 19.8097 16.8336 19.7867 16.799L19.4926 16.4703L19.9597 16.3492C20.248 16.2685 20.4383 16.1647 20.5306 16.0378C20.6344 15.9109 20.6748 15.6975 20.6517 15.3977C20.421 15.3515 20.225 15.3458 20.0635 15.3804C19.9135 15.415 19.7578 15.4553 19.5964 15.5015C19.3888 15.5591 19.1754 15.611 18.9562 15.6572C18.7486 15.6918 18.518 15.7091 18.2642 15.7091C18.172 15.7091 18.0855 15.7091 18.0047 15.7091C17.924 15.6975 17.8375 15.686 17.7452 15.6745L17.5722 15.6399C17.5491 15.513 17.5261 15.4438 17.503 15.4323C17.4799 15.4092 17.4569 15.3861 17.4338 15.3631C17.3761 15.3054 17.3127 15.2304 17.2435 15.1382C17.1858 15.0343 17.1743 14.9075 17.2089 14.7575C17.1512 14.6537 17.1166 14.5499 17.1051 14.4461C17.0359 14.5845 16.984 14.7287 16.9494 14.8786L16.8802 15.0516L16.7072 15.0862C16.6841 15.0978 16.6668 15.1266 16.6553 15.1728C16.6437 15.2074 16.638 15.2362 16.638 15.2593L16.5515 15.5534C16.5284 15.5764 16.5053 15.5995 16.4823 15.6226C16.4592 15.6341 16.4361 15.6514 16.4131 15.6745C16.39 15.7783 16.3612 15.8821 16.3266 15.9859C16.292 16.0897 16.2574 16.1877 16.2228 16.28C16.1651 16.4299 16.1132 16.5799 16.067 16.7298C16.0324 16.8682 16.0209 17.0066 16.0324 17.145L15.9632 17.3353C15.9056 17.4045 15.8421 17.4622 15.7729 17.5083C15.7037 17.5429 15.6345 17.5775 15.5653 17.6121C15.5423 17.6352 15.5077 17.6583 15.4615 17.6813C15.4269 17.6929 15.3981 17.7044 15.375 17.7159L15.3231 17.9062L15.1155 17.9408C14.9886 17.9639 14.8964 17.9812 14.8387 17.9927C14.7926 18.0043 14.7349 18.01 14.6657 18.01L14.4927 17.9927C14.3658 17.8889 14.2678 17.8082 14.1986 17.7505C14.1294 17.6813 14.0486 17.6179 13.9564 17.5602C13.8526 17.4218 13.7949 17.318 13.7834 17.2488C13.7718 17.1796 13.7603 17.1162 13.7488 17.0585C13.7257 16.9893 13.7142 16.9316 13.7142 16.8855C13.7026 16.8394 13.6853 16.8048 13.6623 16.7817L13.4374 16.5741L13.6277 16.4184L13.645 16.1243C13.8756 15.5361 14.1178 14.9709 14.3716 14.4288C14.6369 13.8867 14.9079 13.3331 15.1847 12.768C15.277 12.5834 15.3635 12.3989 15.4442 12.2143C15.5365 12.0298 15.6288 11.8453 15.721 11.6607C15.7095 11.6261 15.7037 11.5858 15.7037 11.5396C15.7037 11.4935 15.7153 11.4416 15.7383 11.3839C15.8652 11.1878 15.969 11.0148 16.0497 10.8649C16.1305 10.7034 16.2112 10.542 16.292 10.3805C16.3842 10.1844 16.4765 9.99411 16.5688 9.80957C16.6726 9.62503 16.7994 9.43472 16.9494 9.23865L17.2262 9.11754C17.2608 9.10601 17.3012 9.09447 17.3473 9.08294C17.3934 9.05987 17.4453 9.04834 17.503 9.04834L17.7625 9.08294C18.0855 8.933 18.368 8.7254 18.6102 8.46012C18.8524 8.18331 19.1004 7.8546 19.3542 7.47399L19.5272 7.23178L19.7521 7.37018C19.8097 7.40478 19.8905 7.43938 19.9943 7.47399C20.0981 7.49705 20.2077 7.52589 20.323 7.56049C20.5306 7.60662 20.7267 7.65852 20.9112 7.71619C21.0958 7.77386 21.2457 7.86037 21.361 7.9757C21.4302 8.16024 21.4706 8.29865 21.4821 8.39092C21.4937 8.48319 21.511 8.57546 21.534 8.66773C21.5686 8.8638 21.5975 9.05987 21.6205 9.25595C21.6551 9.45202 21.6782 9.67116 21.6897 9.91337C21.7474 10.1094 21.7935 10.3055 21.8281 10.5016C21.8743 10.6861 21.9147 10.8764 21.9493 11.0725C22.0069 11.3493 22.0646 11.6204 22.1223 11.8856C22.1799 12.1394 22.2549 12.3816 22.3472 12.6123C22.4394 12.6123 22.4971 12.618 22.5202 12.6296C22.5778 12.6065 22.6355 12.5892 22.6932 12.5777C22.7624 12.5661 22.8374 12.5546 22.9181 12.5431L23.1084 12.5258L23.1776 12.6988C23.1891 12.7564 23.2468 12.8141 23.3506 12.8718C23.5005 12.8833 23.6101 12.9179 23.6793 12.9756C23.7485 13.0217 23.812 13.0736 23.8696 13.1313C23.9158 13.1774 23.9619 13.212 24.008 13.2351L24.2675 13.3389L24.1291 13.5984C24.0138 13.806 23.8466 14.0078 23.6274 14.2039C23.4198 14.3885 23.1834 14.5442 22.9181 14.671C22.9296 14.7402 22.9354 14.8094 22.9354 14.8786C22.9469 14.9363 22.9642 14.9997 22.9873 15.0689C23.0219 15.265 23.0507 15.4669 23.0738 15.6745C23.0969 15.8821 23.0969 16.0954 23.0738 16.3146L23.0392 16.3838ZM18.0393 13.3908C18.3853 13.3677 18.6967 13.3447 18.9736 13.3216C19.2619 13.287 19.5791 13.2351 19.9251 13.1659C19.8443 12.8199 19.7578 12.4623 19.6656 12.0932C19.5733 11.7126 19.4753 11.3378 19.3715 10.9687L19.2677 11.1417C19.037 11.3839 18.8121 11.655 18.5929 11.9548C18.3853 12.2547 18.2066 12.5373 18.0566 12.8026C17.9874 12.9064 17.9182 13.0102 17.849 13.114C17.7798 13.2178 17.7164 13.3216 17.6587 13.4254C17.7279 13.4139 17.7913 13.4081 17.849 13.4081C17.9182 13.4081 17.9816 13.4023 18.0393 13.3908Z",fill:"currentColor"})]})),x8=e=>(0,h.jsxs)(xk,Object.assign({},e,{children:[(0,h.jsx)("path",{d:"M17.6009 13.7718C16.9702 14.7412 16.4323 15.6241 15.8572 16.4897C15.3749 17.1994 14.8741 17.4245 14.2063 17.2514C13.4457 17.0609 12.982 16.5243 13.0005 15.728C13.0005 14.4123 13.3344 13.1485 13.8353 11.9194C14.5031 10.3441 15.3564 8.85529 16.4694 7.505C16.9331 6.93372 17.267 6.88178 18.0461 7.17608C18.6583 7.41844 18.8994 7.79929 18.7881 8.43982C18.7325 8.76874 18.6583 9.11497 18.5099 9.42657C18.4542 9.58238 18.1574 9.79011 18.0647 9.75549C17.8421 9.66893 17.5824 9.47851 17.5082 9.28808C17.434 9.06303 17.5453 8.78605 17.5824 8.54369C16.4879 9.34002 14.8555 13.0274 14.7813 15.1221C15.2636 14.3603 15.7645 13.6333 16.2097 12.8542C16.5807 12.231 16.896 11.5732 17.2485 10.9154C17.2856 10.8461 17.3227 10.7249 17.3598 10.7249C17.7679 10.7596 18.2131 10.7422 18.6026 10.8634C18.8067 10.9327 19.0293 11.2097 19.0664 11.4174C19.3075 13.1139 19.493 14.8104 19.7156 16.507C19.7713 16.8013 19.864 17.0783 19.9568 17.3725C20.0866 17.7534 19.9197 17.9438 19.5116 17.9958C18.9551 18.0477 18.3615 17.6149 18.2687 17.1129C18.0461 16.0396 17.8421 14.9489 17.6009 13.7718Z",fill:"currentColor"}),(0,h.jsx)("path",{d:"M8.51335 8.78701C8.43655 8.76919 8.37894 8.76919 8.32134 8.76919C7.53408 10.9247 6.78522 13.098 6.30519 15.4139C7.15005 15.2001 7.8605 15.0042 8.60936 14.8616C9.05099 14.7904 9.1278 14.6122 9.07019 14.2381C8.95498 13.4721 8.89738 12.7061 8.82057 11.9579C8.70537 10.8891 8.60936 9.83804 8.51335 8.78701ZM9.26221 15.877C8.26373 16.1977 7.32286 16.4827 6.40119 16.8212C6.20918 16.8925 6.05557 17.1419 5.99796 17.32C5.90196 17.6585 5.90196 18.0147 5.86355 18.371C5.82515 18.8342 5.55633 19.0123 5.07629 18.9055C4.23143 18.7273 3.98181 18.4245 4.00101 17.6407C4.07782 15.7167 4.53865 13.864 5.1339 12.0292C5.88275 9.69553 6.74682 7.3975 7.55328 5.08166C7.74529 4.52942 7.95651 3.995 8.12932 3.42494C8.26373 2.96178 8.53255 2.92615 8.97418 3.08647C9.72304 3.35369 10.0495 3.72778 10.0879 4.54724C10.2223 7.6469 10.4911 10.7466 10.7407 13.8284C10.7983 14.6122 11.0863 15.3426 11.1439 16.1443C11.24 17.5694 11.6624 18.9589 11.9696 20.3484C12.0848 20.8828 11.8736 21.0788 11.3168 20.9719C10.5871 20.8472 10.2991 20.5087 10.1455 19.814C9.87665 18.5314 9.56943 17.2487 9.26221 15.877Z",fill:"currentColor"})]})),Ce=e=>(0,h.jsx)(xk,Object.assign({},e,{children:(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.5 5.75C4.5 5.05964 5.05964 4.5 5.75 4.5H18.25C18.9404 4.5 19.5 5.05964 19.5 5.75V8.09375C19.5 8.78411 18.9404 9.34375 18.25 9.34375C17.5596 9.34375 17 8.78411 17 8.09375V7H13.25V17H14.3438C15.0341 17 15.5938 17.5596 15.5938 18.25C15.5938 18.9404 15.0341 19.5 14.3438 19.5H9.65625C8.96589 19.5 8.40625 18.9404 8.40625 18.25C8.40625 17.5596 8.96589 17 9.65625 17H10.75V7H7V8.09375C7 8.78411 6.44036 9.34375 5.75 9.34375C5.05964 9.34375 4.5 8.78411 4.5 8.09375V5.75Z",fill:"currentColor"})})),Ct=e=>(0,h.jsxs)(xk,Object.assign({},e,{children:[(0,h.jsx)("path",{opacity:.12,d:"M8.19299 15.5L9.19299 9H15.193L14.193 14.5L8.19299 15.5Z",fill:"currentColor"}),(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.80342 2.00608C10.3523 2.06707 10.7479 2.56149 10.6869 3.1104L10.1436 7.99997H14.1313L14.6991 2.88953C14.7601 2.34063 15.2545 1.94509 15.8034 2.00608C16.3523 2.06707 16.7479 2.56149 16.6869 3.1104L16.1436 7.99997H20.693C21.2453 7.99997 21.693 8.44768 21.693 8.99997C21.693 9.55225 21.2453 9.99997 20.693 9.99997H15.9214L15.4769 14H19.693C20.2453 14 20.693 14.4477 20.693 15C20.693 15.5523 20.2453 16 19.693 16H15.2547L14.6869 21.1104C14.6259 21.6593 14.1315 22.0548 13.5826 21.9938C13.0337 21.9329 12.6381 21.4384 12.6991 20.8895L13.2424 16H9.2547L8.68688 21.1104C8.62589 21.6593 8.13147 22.0548 7.58256 21.9938C7.03365 21.9329 6.63812 21.4384 6.69911 20.8895L7.24239 16H1.69299C1.14071 16 0.692993 15.5523 0.692993 15C0.692993 14.4477 1.14071 14 1.69299 14H7.46462L7.90906 9.99997H2.69299C2.14071 9.99997 1.69299 9.55225 1.69299 8.99997C1.69299 8.44768 2.14071 7.99997 2.69299 7.99997H8.13128L8.69911 2.88953C8.7601 2.34063 9.25452 1.94509 9.80342 2.00608ZM9.92137 9.99997L9.47692 14H13.4646L13.9091 9.99997H9.92137Z",fill:"currentColor"})]})),Cn=e=>(0,h.jsxs)(xk,Object.assign({},e,{children:[(0,h.jsxs)("g",{opacity:.12,children:[(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.69298 4C8.34814 4 9.69299 5.34482 9.69299 6.99998C9.69299 8.65515 8.34814 10 6.69298 10C5.03781 10 3.69299 8.65515 3.69299 6.99998C3.69299 5.34482 5.03781 4 6.69298 4Z",fill:"currentColor"}),(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.693 14C18.3482 14 19.693 15.3448 19.693 17C19.693 18.6552 18.3482 20 16.693 20C15.0379 20 13.6931 18.6552 13.6931 17C13.6827 15.3448 15.0275 14 16.693 14Z",fill:"currentColor"})]}),(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.69304 5C5.59016 5 4.69305 5.8971 4.69305 6.99998C4.69305 8.10288 5.59017 9 6.69304 9C7.79592 9 8.69305 8.10287 8.69305 6.99998C8.69305 5.89712 7.79593 5 6.69304 5ZM2.69305 6.99998C2.69305 4.79253 4.48559 3 6.69304 3C8.90048 3 10.6931 4.79252 10.6931 6.99998C10.6931 9.20744 8.90049 11 6.69304 11C4.48557 11 2.69305 9.20742 2.69305 6.99998ZM17.9859 4.29289C18.3765 3.90237 19.0096 3.90237 19.4002 4.29289C19.7907 4.68342 19.7907 5.31658 19.4002 5.70711L5.40016 19.7071C5.00964 20.0976 4.37647 20.0976 3.98595 19.7071C3.59542 19.3166 3.59542 18.6834 3.98595 18.2929L17.9859 4.29289ZM16.6931 15C15.5764 15 14.6863 15.8992 14.6931 16.9938L14.6931 17C14.6931 18.1029 15.5902 19 16.6931 19C17.796 19 18.6931 18.1029 18.6931 17C18.6931 15.8971 17.796 15 16.6931 15ZM12.6931 17.0031C12.681 14.7888 14.4798 13 16.6931 13C18.9005 13 20.6931 14.7926 20.6931 17C20.6931 19.2074 18.9005 21 16.6931 21C14.4867 21 12.6948 19.2092 12.6931 17.0031Z",fill:"currentColor"})]})),Cr=e=>(0,h.jsxs)(xk,Object.assign({viewBox:"0 0 25 24",fill:"none"},e,{children:[(0,h.jsx)("rect",{opacity:.12,x:2.69299,y:2,width:20,height:20,rx:10,fill:"currentColor"}),(0,h.jsx)("path",{d:"M13.693 8C13.693 7.44772 13.2453 7 12.693 7C12.1407 7 11.693 7.44772 11.693 8V12C11.693 12.3344 11.8601 12.6466 12.1383 12.8321L15.1383 14.8321C15.5978 15.1384 16.2187 15.0142 16.525 14.5547C16.8314 14.0952 16.7072 13.4743 16.2477 13.1679L13.693 11.4648V8Z",fill:"currentColor"}),(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.693 1C6.61786 1 1.69299 5.92487 1.69299 12C1.69299 18.0751 6.61786 23 12.693 23C18.7681 23 23.693 18.0751 23.693 12C23.693 5.92487 18.7681 1 12.693 1ZM3.69299 12C3.69299 7.02944 7.72243 3 12.693 3C17.6636 3 21.693 7.02944 21.693 12C21.693 16.9706 17.6636 21 12.693 21C7.72243 21 3.69299 16.9706 3.69299 12Z",fill:"currentColor"})]})),Ci=e=>(0,h.jsxs)(xk,Object.assign({viewBox:"0 0 25 24",fill:"none"},e,{children:[(0,h.jsx)("rect",{opacity:.12,x:2.69296,y:2,width:20,height:20,rx:6,fill:"currentColor",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),(0,h.jsx)("path",{d:"M6.69296 8C6.69296 7.44772 7.14068 7 7.69296 7H17.693C18.2452 7 18.693 7.44772 18.693 8C18.693 8.55229 18.2452 9 17.693 9H7.69296C7.14068 9 6.69296 8.55229 6.69296 8Z",fill:"currentColor"}),(0,h.jsx)("path",{d:"M15.693 16C15.1407 16 14.693 16.4477 14.693 17C14.693 17.5523 15.1407 18 15.693 18H17.693C18.2452 18 18.693 17.5523 18.693 17C18.693 16.4477 18.2452 16 17.693 16H15.693Z",fill:"currentColor"}),(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.69296 0C9.24525 0 9.69296 0.447715 9.69296 1V1.01729C10.4373 0.999992 11.2826 0.999996 12.2485 1H13.1374C14.1033 0.999996 14.9486 0.999992 15.693 1.01729V1C15.693 0.447715 16.1407 0 16.693 0C17.2452 0 17.693 0.447715 17.693 1V1.14441C18.5062 1.24729 19.2153 1.42893 19.8709 1.76295C21.188 2.43407 22.2589 3.50493 22.93 4.82207C23.3408 5.62827 23.5211 6.51543 23.6079 7.57778C23.693 8.61909 23.693 9.91303 23.693 11.5556V12.4444C23.693 14.087 23.693 15.3809 23.6079 16.4222C23.5211 17.4846 23.3408 18.3717 22.93 19.1779C22.2589 20.4951 21.188 21.5659 19.8709 22.237C19.0647 22.6478 18.1775 22.8281 17.1152 22.9149C16.0739 23 14.7799 23 13.1374 23H12.2485C10.606 23 9.31205 23 8.27074 22.9149C7.20839 22.8281 6.32123 22.6478 5.51503 22.237C4.19789 21.5659 3.12703 20.4951 2.45592 19.1779C2.04514 18.3717 1.86483 17.4846 1.77803 16.4222C1.69295 15.3809 1.69296 14.087 1.69296 12.4444V11.5556C1.69296 9.91305 1.69295 8.61909 1.77803 7.57778C1.86483 6.51543 2.04514 5.62827 2.45592 4.82207C3.12703 3.50493 4.19789 2.43407 5.51503 1.76295C6.17059 1.42893 6.87968 1.24729 7.69296 1.14441V1C7.69296 0.447715 8.14068 0 8.69296 0ZM15.693 3.01778V4C15.693 4.55229 16.1407 5 16.693 5C17.2452 5 17.693 4.55228 17.693 4V3.16428C18.2286 3.24911 18.6252 3.37287 18.9629 3.54497C19.9037 4.02433 20.6686 4.78924 21.148 5.73005C21.3912 6.20731 21.5378 6.80197 21.6145 7.74064C21.6922 8.69099 21.693 9.90334 21.693 11.6V12.4C21.693 14.0967 21.6922 15.309 21.6145 16.2594C21.5378 17.198 21.3912 17.7927 21.148 18.27C20.6686 19.2108 19.9037 19.9757 18.9629 20.455C18.4856 20.6982 17.891 20.8449 16.9523 20.9216C16.002 20.9992 14.7896 21 13.093 21H12.293C10.5963 21 9.38395 20.9992 8.43361 20.9216C7.49494 20.8449 6.90028 20.6982 6.42301 20.455C5.4822 19.9757 4.7173 19.2108 4.23793 18.27C3.99475 17.7927 3.84808 17.198 3.77139 16.2594C3.69374 15.309 3.69296 14.0967 3.69296 12.4V11.6C3.69296 9.90334 3.69374 8.69099 3.77139 7.74064C3.84808 6.80197 3.99475 6.20731 4.23793 5.73005C4.7173 4.78924 5.4822 4.02433 6.42301 3.54497C6.76076 3.37287 7.15731 3.24911 7.69296 3.16428V4C7.69296 4.55229 8.14068 5 8.69296 5C9.24525 5 9.69296 4.55228 9.69296 4V3.01778C10.4148 3.00029 11.265 3 12.293 3H13.093C14.1209 3 14.9711 3.00029 15.693 3.01778Z",fill:"currentColor"})]})),Co=e=>(0,h.jsx)(xk,Object.assign({},e,{children:(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.693 2C12.693 1.44772 12.2453 1 11.693 1C11.1407 1 10.693 1.44772 10.693 2V3H9.17983C6.70182 3 4.69299 5.00882 4.69299 7.48683C4.69299 9.4181 5.9288 11.1327 7.76097 11.7434L10.693 12.7208L10.693 19H9.69299C8.03614 19 6.69299 17.6569 6.69299 16C6.69299 15.4477 6.24528 15 5.69299 15C5.14071 15 4.69299 15.4477 4.69299 16C4.69299 18.7614 6.93157 21 9.69299 21H10.693V22C10.693 22.5523 11.1407 23 11.693 23C12.2453 23 12.693 22.5523 12.693 22V21H14.2062C16.6842 21 18.693 18.9912 18.693 16.5132C18.693 14.5819 17.4572 12.8673 15.625 12.2566L12.693 11.2792V5H13.693C15.3498 5 16.693 6.34315 16.693 8C16.693 8.55228 17.1407 9 17.693 9C18.2453 9 18.693 8.55228 18.693 8C18.693 5.23858 16.4544 3 13.693 3H12.693V2ZM10.693 5H9.17983C7.80639 5 6.69299 6.11339 6.69299 7.48683C6.69299 8.55724 7.37794 9.50756 8.39342 9.84605L10.693 10.6126L10.693 5ZM12.693 13.3874V19H14.2062C15.5796 19 16.693 17.8866 16.693 16.5132C16.693 15.4428 16.008 14.4924 14.9926 14.154L12.693 13.3874Z",fill:"currentColor"})})),Cl=e=>(0,h.jsxs)(xk,Object.assign({viewBox:"0 0 27 24",fill:"none"},e,{children:[(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.69302 16.2C5.69302 15.6477 6.14074 15.2 6.69302 15.2H16.223C16.7753 15.2 17.223 15.6477 17.223 16.2C17.223 16.7522 16.7753 17.2 16.223 17.2H6.69302C6.14074 17.2 5.69302 16.7522 5.69302 16.2Z",fill:"currentColor"}),(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.69302 12.78C5.69302 12.2277 6.14074 11.78 6.69302 11.78H17.643C18.1953 11.78 18.643 12.2277 18.643 12.78C18.643 13.3323 18.1953 13.78 17.643 13.78H6.69302C6.14074 13.78 5.69302 13.3323 5.69302 12.78Z",fill:"currentColor"}),(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.223 8C12.6353 8 9.72302 10.9123 9.72302 14.5C9.72302 18.0877 12.6353 21 16.223 21C18.3894 21 20.3032 19.9445 21.4828 18.3139C21.8065 17.8664 22.4317 17.7661 22.8792 18.0898C23.3266 18.4135 23.427 19.0386 23.1033 19.4861C21.5628 21.6155 19.0567 23 16.223 23C11.5307 23 7.72302 19.1923 7.72302 14.5C7.72302 9.80772 11.5307 6 16.223 6C19.0566 6 21.5628 7.38445 23.1033 9.51386C23.427 9.96133 23.3266 10.5865 22.8792 10.9102C22.4317 11.2339 21.8065 11.1336 21.4828 10.6861C20.3032 9.0555 18.3894 8 16.223 8Z",fill:"currentColor"})]})),Ca=e=>(0,h.jsx)(xk,Object.assign({},e,{children:(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.59308 8.94C7.59308 6.21772 9.8108 4 12.5331 4H13.0631C15.7854 4 18.0031 6.21772 18.0031 8.94V9.25C18.0031 9.80228 17.5554 10.25 17.0031 10.25C16.4508 10.25 16.0031 9.80228 16.0031 9.25V8.94C16.0031 7.32229 14.6808 6 13.0631 6H12.5331C10.9154 6 9.59308 7.32229 9.59308 8.94V12.34H13.1931C13.7453 12.34 14.1931 12.7877 14.1931 13.34C14.1931 13.8923 13.7453 14.34 13.1931 14.34H9.59308V17.57C9.59308 18.0762 9.48301 18.5571 9.28553 18.99H17.0031C17.5553 18.99 18.0031 19.4377 18.0031 19.99C18.0031 20.5423 17.5553 20.99 17.0031 20.99H6.42667C6.33967 20.9966 6.25177 21 6.16309 21H5.70306C5.42438 21 5.17231 20.886 4.99097 20.7021C4.80706 20.5207 4.69305 20.2687 4.69305 19.99C4.69305 19.4377 5.14077 18.99 5.69305 18.99H6.33253C7.04085 18.9058 7.59308 18.3004 7.59308 17.57V14.34H5.69305C5.14077 14.34 4.69305 13.8923 4.69305 13.34C4.69305 12.7877 5.14077 12.34 5.69305 12.34H7.59308V8.94Z",fill:"currentColor"})})),Cs=e=>{var{variant:t}=e,n=sJ(e,["variant"]);return(0,h.jsxs)(xk,Object.assign({variant:t,viewBox:"0 0 24 24"},n,{children:[(0,h.jsx)("path",{fill:t?"none":"#fff",d:"M6 10h11v10H6z"}),(0,h.jsx)("path",{fill:t?"currentColor":"#F4B400",fillRule:"evenodd",d:"M4.614 0h9.144L17 3.212l3.212 3.243v15.598c0 .887-.726 1.614-1.613 1.614H4.614A1.618 1.618 0 0 1 3 22.053V1.613C3 .727 3.726 0 4.614 0ZM8.11 10.758h6.992a.81.81 0 0 1 .807.806v6.993a.81.81 0 0 1-.807.807H8.11a.81.81 0 0 1-.807-.807v-6.993a.81.81 0 0 1 .807-.806Zm.269 6.185h6.454v-3.765H8.38v3.765Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#fff",fillOpacity:.5,d:"M13.758 0v4.84c0 .892.722 1.615 1.613 1.615h4.841L13.758 0Z"})]}))},Cu=e=>{var{variant:t}=e,n=sJ(e,["variant"]);return(0,h.jsx)(xk,Object.assign({variant:t},n,{children:(0,h.jsx)("path",{d:"M12 0C8.74 0 8.333.015 7.053.072 5.775.132 4.905.333 4.14.63a5.876 5.876 0 00-2.126 1.384A5.855 5.855 0 00.63 4.14C.333 4.905.131 5.775.072 7.053.012 8.333 0 8.74 0 12s.015 3.667.072 4.947c.06 1.277.261 2.148.558 2.913a5.885 5.885 0 001.384 2.126A5.868 5.868 0 004.14 23.37c.766.296 1.636.499 2.913.558C8.333 23.988 8.74 24 12 24s3.667-.015 4.947-.072c1.277-.06 2.148-.262 2.913-.558a5.898 5.898 0 002.126-1.384 5.86 5.86 0 001.384-2.126c.296-.765.499-1.636.558-2.913.06-1.28.072-1.687.072-4.947s-.015-3.667-.072-4.947c-.06-1.277-.262-2.149-.558-2.913a5.89 5.89 0 00-1.384-2.126A5.847 5.847 0 0019.86.63c-.765-.297-1.636-.499-2.913-.558C15.667.012 15.26 0 12 0zm0 2.16c3.203 0 3.585.016 4.85.071 1.17.055 1.805.249 2.227.415.562.217.96.477 1.382.896.419.42.679.819.896 1.381.164.422.36 1.057.413 2.227.057 1.266.07 1.646.07 4.85 0 3.204-.015 3.585-.074 4.85-.061 1.17-.256 1.805-.421 2.227a3.81 3.81 0 01-.899 1.382 3.744 3.744 0 01-1.38.896c-.42.164-1.065.36-2.235.413-1.274.057-1.649.07-4.859.07-3.211 0-3.586-.015-4.859-.074-1.171-.061-1.816-.256-2.236-.421a3.716 3.716 0 01-1.379-.899 3.644 3.644 0 01-.9-1.38c-.165-.42-.359-1.065-.42-2.235-.045-1.26-.061-1.649-.061-4.844 0-3.196.016-3.586.061-4.861.061-1.17.255-1.814.42-2.234.21-.57.479-.96.9-1.381.419-.419.81-.689 1.379-.898.42-.166 1.051-.361 2.221-.421 1.275-.045 1.65-.06 4.859-.06l.045.03zm0 3.678a6.162 6.162 0 100 12.324 6.162 6.162 0 100-12.324zM12 16c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4zm7.846-10.405a1.441 1.441 0 01-2.88 0 1.44 1.44 0 012.88 0z",fill:t?"currentColor":"#DA70A9"})}))},Cc=e=>(0,h.jsxs)(xk,Object.assign({},e,{children:[(0,h.jsx)("path",{opacity:"0.12",d:"M2 10.8c0-1.68 0-2.52.327-3.162a3 3 0 011.311-1.311C4.28 6 5.12 6 6.8 6h10.4c1.68 0 2.52 0 3.162.327a3 3 0 011.311 1.311C22 8.28 22 9.12 22 10.8v2.4c0 1.68 0 2.52-.327 3.162a3 3 0 01-1.311 1.311C19.72 18 18.88 18 17.2 18H6.8c-1.68 0-2.52 0-3.162-.327a3 3 0 01-1.311-1.311C2 15.72 2 14.88 2 13.2v-2.4z",fill:"currentColor"}),(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.768 4.89h10.464c.813 0 1.469 0 2 .044.546.045 1.026.14 1.47.366a3.75 3.75 0 011.64 1.638c.226.445.32.925.365 1.471.043.531.043 1.187.043 2v3.182c0 .813 0 1.469-.043 2-.045.546-.14 1.026-.366 1.47a3.75 3.75 0 01-1.639 1.64c-.444.226-.924.32-1.47.365-.531.043-1.187.043-2 .043H6.768c-.813 0-1.469 0-2-.043-.546-.045-1.026-.14-1.47-.366a3.75 3.75 0 01-1.64-1.639c-.226-.444-.32-.924-.365-1.47-.043-.531-.043-1.187-.043-2V10.41c0-.813 0-1.469.043-2 .045-.546.14-1.026.366-1.47a3.75 3.75 0 011.639-1.64c.444-.226.924-.32 1.47-.365.531-.043 1.187-.043 2-.043zM4.89 6.43c-.454.036-.715.105-.912.206a2.25 2.25 0 00-.984.983c-.1.198-.17.459-.207.913-.037.462-.038 1.056-.038 1.909v3.118c0 .853 0 1.447.038 1.91.037.453.107.714.207.912.216.423.56.767.984.983.197.1.458.17.912.207.462.037 1.057.038 1.909.038h10.4c.852 0 1.447 0 1.91-.038.453-.037.714-.107.912-.207a2.25 2.25 0 00.983-.983c.1-.198.17-.459.207-.913.037-.462.038-1.056.038-1.909v-3.118c0-.853 0-1.447-.038-1.91-.038-.453-.107-.714-.207-.912a2.25 2.25 0 00-.983-.983c-.198-.1-.459-.17-.913-.207-.462-.038-1.057-.038-1.909-.038H6.8c-.852 0-1.447 0-1.91.038z",fill:"currentColor"})]})),Cd=e=>{var{variant:t}=e,n=sJ(e,["variant"]);return(0,h.jsx)(xk,Object.assign({variant:t},n,{children:(0,h.jsx)("path",{d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286h-.001zM5.337 7.433a2.062 2.062 0 01-2.063-2.065 2.064 2.064 0 112.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z",fill:t?"currentColor":"#6596DA"})}))},Cp=e=>(0,h.jsxs)(xk,Object.assign({},e,{children:[(0,h.jsx)("path",{opacity:"0.12",d:"M5 6.8c0-1.68 0-2.52.327-3.162a3 3 0 011.311-1.311C7.28 2 8.12 2 9.8 2h4.4c1.68 0 2.52 0 3.162.327a3 3 0 011.311 1.311C19 4.28 19 5.12 19 6.8v10.4c0 1.68 0 2.52-.327 3.162a3 3 0 01-1.311 1.311C16.72 22 15.88 22 14.2 22H9.8c-1.68 0-2.52 0-3.162-.327a3 3 0 01-1.311-1.311C5 19.72 5 18.88 5 17.2V6.8z",fill:"currentColor"}),(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.256 1.25h3.488c.813 0 1.468 0 2 .043.546.045 1.026.14 1.47.366a3.75 3.75 0 011.639 1.639c.226.444.32.924.365 1.47.044.531.044 1.187.044 2v10.464c0 .813 0 1.469-.044 2-.044.546-.139 1.026-.365 1.47a3.75 3.75 0 01-1.639 1.64c-.444.226-.924.32-1.47.365-.532.043-1.187.043-2 .043h-3.488c-.813 0-1.468 0-2-.043-.546-.045-1.026-.14-1.47-.366a3.75 3.75 0 01-1.639-1.639c-.226-.444-.32-.924-.365-1.47-.044-.531-.044-1.187-.044-2V6.768c0-.813 0-1.469.044-2 .044-.546.139-1.026.365-1.47a3.75 3.75 0 011.639-1.64c.444-.226.924-.32 1.47-.365.532-.043 1.187-.043 2-.043zM8.38 2.788c-.454.037-.715.107-.912.207a2.25 2.25 0 00-.983.984c-.101.197-.17.458-.207.912-.038.462-.039 1.057-.039 1.909v10.4c0 .852 0 1.447.039 1.91.037.453.106.714.207.912.215.423.56.767.983.983.197.1.458.17.912.207.463.037 1.057.038 1.91.038h3.423c.852 0 1.446 0 1.909-.038.454-.038.715-.107.912-.207.423-.216.768-.56.983-.983.101-.198.17-.459.207-.913.038-.462.039-1.057.039-1.909V6.8c0-.852-.001-1.447-.039-1.91-.037-.453-.106-.714-.207-.911a2.25 2.25 0 00-.983-.984c-.197-.1-.458-.17-.912-.207-.463-.037-1.057-.038-1.91-.038h-3.423c-.852 0-1.446 0-1.909.038z",fill:"currentColor"})]})),Ch=e=>{var{variant:t}=e,n=sJ(e,["variant"]);return(0,h.jsxs)(xk,Object.assign({variant:t},n,{children:[(0,h.jsx)("path",{d:"M15.5634 8.87665C17.0957 9.97137 18.9727 10.6155 21 10.6155V6.71636C20.6163 6.71644 20.2336 6.67645 19.8583 6.59697V9.66613C17.8311 9.66613 15.9543 9.02202 14.4217 7.92738V15.8844C14.4217 19.8648 11.1933 23.0914 7.21098 23.0914C5.7251 23.0914 4.34403 22.6425 3.19678 21.8724C4.50618 23.2106 6.33224 24.0407 8.35245 24.0407C12.335 24.0407 15.5636 20.8141 15.5636 16.8335V8.87665H15.5634ZM16.9719 4.94291C16.1888 4.08787 15.6747 2.98288 15.5634 1.76128V1.25977H14.4815C14.7538 2.81243 15.6827 4.13893 16.9719 4.94291ZM5.71557 18.8179C5.27807 18.2446 5.04165 17.5432 5.04271 16.8221C5.04271 15.0015 6.51939 13.5254 8.34121 13.5254C8.68074 13.5254 9.01822 13.5773 9.34179 13.6799V9.69366C8.96366 9.64186 8.58203 9.61988 8.20056 9.62794V12.7307C7.87676 12.628 7.5391 12.5759 7.1995 12.5762C5.37767 12.5762 3.90107 14.0522 3.90107 15.873C3.90107 17.1604 4.63917 18.275 5.71557 18.8179Z",fill:t?"currentColor":"#FF004F"}),(0,h.jsx)("path",{d:"M14.4217 7.9273C15.9543 9.02194 17.8311 9.66605 19.8583 9.66605V6.59689C18.7267 6.35599 17.725 5.76497 16.9718 4.94291C15.6826 4.13885 14.7538 2.81235 14.4815 1.25977H11.6395V16.8333C11.6331 18.6489 10.1589 20.1189 8.34102 20.1189C7.26975 20.1189 6.31804 19.6086 5.7153 18.8179C4.63898 18.275 3.90089 17.1603 3.90089 15.873C3.90089 14.0524 5.37748 12.5763 7.19931 12.5763C7.54836 12.5763 7.88479 12.6306 8.20037 12.7307V9.62802C4.28805 9.70881 1.1416 12.9039 1.1416 16.8334C1.1416 18.795 1.92514 20.5732 3.19683 21.8725C4.34409 22.6425 5.72515 23.0915 7.21104 23.0915C11.1934 23.0915 14.4218 19.8648 14.4218 15.8844V7.9273H14.4217Z",fill:t?"currentColor":"#000000"}),(0,h.jsx)("path",{d:"M19.8583 6.59686V5.76698C18.8379 5.76853 17.8376 5.48291 16.9719 4.9428C17.7382 5.78139 18.7474 6.35962 19.8583 6.59686ZM14.4815 1.25974C14.4555 1.11135 14.4356 0.961989 14.4217 0.812057V0.310547H10.4978V15.8842C10.4915 17.6996 9.01742 19.1696 7.19934 19.1696C6.66558 19.1696 6.16162 19.043 5.71533 18.818C6.31807 19.6085 7.26978 20.1188 8.34105 20.1188C10.1588 20.1188 11.6332 18.6489 11.6396 16.8334V1.25974H14.4815ZM8.20057 9.62799V8.74452C7.87269 8.69973 7.54212 8.67725 7.21115 8.67742C3.22846 8.67733 0 11.9041 0 15.8842C0 18.3796 1.26884 20.5787 3.19695 21.8723C1.92525 20.5731 1.14171 18.7948 1.14171 16.8333C1.14171 12.9039 4.28809 9.70878 8.20057 9.62799Z",fill:t?"currentColor":"#00F2EA"})]}))},Cg=e=>{var{variant:t}=e,n=sJ(e,["variant"]);return(0,h.jsx)(xk,Object.assign({variant:t},n,{children:(0,h.jsx)("path",{fill:t?"currentColor":"#000",d:"M.094.143C.084.16.933 1.31 1.976 2.696l4.926 6.55 3.029 4.027-.194.218c-.11.12-2.337 2.512-4.947 5.315C2.18 21.614.036 23.927.03 23.953c-.01.026.446.047 1.1.042l1.117-.005.367-.402a6005 6005 0 0 0 8.202-8.82l.13-.151 1.049 1.396 3.527 4.694L18.007 24h3.8c3.16 0 3.794-.01 3.773-.068-.016-.041-.98-1.333-2.144-2.88a2215.571 2215.571 0 0 1-2.955-3.93c-.467-.614-1.835-2.443-3.05-4.053-1.216-1.615-2.212-2.959-2.212-2.98 0-.036 6.425-6.971 8.61-9.29l.624-.661h-1.148l-1.142.005-1.337 1.438c-.733.792-2.53 2.73-3.998 4.298L14.17 8.735l-3.223-4.283L7.719.164 3.92.138C1.83.122.106.128.095.143ZM9.098 4.76c1.242 1.657 3.16 4.205 4.26 5.669 1.101 1.459 3.543 4.71 5.43 7.216l3.474 4.626c.032.047-.34.063-1.698.063H18.83l-3.438-4.575C7.457 7.218 3.453 1.894 3.406 1.816c-.031-.047.325-.063 1.693-.063h1.735l2.264 3.006Z"})}))},Cf=e=>(0,h.jsxs)(xk,Object.assign({},e,{children:[(0,h.jsx)("path",{opacity:"0.12",d:"M4.394 18.894c-1.188-1.188-1.782-1.782-2.005-2.467a3 3 0 010-1.854c.223-.685.817-1.279 2.005-2.467l7.712-7.712c1.188-1.188 1.782-1.782 2.467-2.004a3 3 0 011.854 0c.685.222 1.279.816 2.467 2.004l.712.712c1.188 1.188 1.782 1.782 2.004 2.467a3 3 0 010 1.854c-.222.685-.816 1.28-2.004 2.467l-7.712 7.712c-1.188 1.188-1.782 1.782-2.467 2.005a3.001 3.001 0 01-1.854 0c-.685-.223-1.28-.817-2.467-2.005l-.712-.712z",fill:"currentColor"}),(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.341 1.676a3.75 3.75 0 012.318 0c.474.154.88.427 1.298.782.406.345.87.808 1.445 1.383l.757.757c.575.575 1.038 1.039 1.383 1.445.355.418.628.824.782 1.298a3.75 3.75 0 010 2.318c-.154.474-.427.88-.782 1.298-.345.406-.808.87-1.383 1.445l-7.757 7.757c-.575.575-1.039 1.038-1.445 1.383-.418.355-.824.628-1.298.782a3.75 3.75 0 01-2.318 0c-.474-.154-.88-.427-1.298-.782-.406-.345-.87-.808-1.445-1.383l-.757-.757c-.575-.575-1.038-1.039-1.383-1.445-.355-.418-.628-.824-.782-1.298a3.75 3.75 0 010-2.318c.154-.474.427-.88.782-1.298.345-.406.808-.87 1.383-1.445l7.757-7.757c.575-.575 1.039-1.038 1.445-1.383.418-.355.824-.628 1.298-.782zm1.854 1.427a2.25 2.25 0 00-1.39 0c-.211.068-.444.204-.792.499-.353.3-.774.72-1.377 1.322l-7.712 7.712c-.602.603-1.022 1.024-1.323 1.378-.294.347-.43.58-.498.79a2.25 2.25 0 000 1.391c.068.211.204.444.498.792.3.353.72.774 1.323 1.377l.712.712c.603.602 1.024 1.022 1.377 1.322.348.295.58.43.792.5a2.25 2.25 0 001.39 0c.211-.07.444-.205.792-.5.06-.05.122-.105.187-.164L8.47 18.53a.75.75 0 011.06-1.06l1.72 1.72 1.94-1.94-3.22-3.22a.75.75 0 011.06-1.06l3.22 3.22 1.94-1.94-1.72-1.72a.75.75 0 011.06-1.06l1.72 1.72 1.94-1.94-3.22-3.22a.75.75 0 011.06-1.06l3.204 3.204c.059-.065.113-.127.164-.187.295-.348.43-.58.5-.792a2.25 2.25 0 000-1.39c-.07-.211-.205-.444-.5-.792-.3-.353-.72-.774-1.322-1.377l-.712-.712c-.603-.602-1.024-1.022-1.378-1.322-.347-.295-.58-.43-.79-.5z",fill:"currentColor"})]})),Cm=e=>(0,h.jsx)(xk,Object.assign({},e,{children:(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.7071 5.29289C16.0976 5.68342 16.0976 6.31658 15.7071 6.70711L10.4142 12L15.7071 17.2929C16.0976 17.6834 16.0976 18.3166 15.7071 18.7071C15.3166 19.0976 14.6834 19.0976 14.2929 18.7071L8.29289 12.7071C7.90237 12.3166 7.90237 11.6834 8.29289 11.2929L14.2929 5.29289C14.6834 4.90237 15.3166 4.90237 15.7071 5.29289Z",fill:"currentColor"})})),Cy=e=>(0,h.jsx)(xk,Object.assign({},e,{children:(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.29289 5.29289C8.68342 4.90237 9.31658 4.90237 9.70711 5.29289L15.7071 11.2929C16.0976 11.6834 16.0976 12.3166 15.7071 12.7071L9.70711 18.7071C9.31658 19.0976 8.68342 19.0976 8.29289 18.7071C7.90237 18.3166 7.90237 17.6834 8.29289 17.2929L13.5858 12L8.29289 6.70711C7.90237 6.31658 7.90237 5.68342 8.29289 5.29289Z",fill:"currentColor"})})),Cb=e=>(0,h.jsxs)(xk,Object.assign({},e,{children:[(0,h.jsx)("path",{d:"M3.75 22C3.33579 22 3 21.6642 3 21.25L3 3.25002C3 2.83581 3.33579 2.50002 3.75 2.50002C4.16421 2.50002 4.5 2.83581 4.5 3.25002L4.5 21.25C4.5 21.6642 4.16421 22 3.75 22Z",fill:"currentColor"}),(0,h.jsx)("path",{d:"M9.41667 22C9.00245 22 8.66667 21.6642 8.66667 21.25L8.66667 8.25002C8.66667 7.83581 9.00245 7.50002 9.41667 7.50002C9.83088 7.50002 10.1667 7.83581 10.1667 8.25002L10.1667 21.25C10.1667 21.6642 9.83088 22 9.41667 22Z",fill:"currentColor"}),(0,h.jsx)("path",{d:"M15.0833 10.5C15.4975 10.5 15.8333 10.8358 15.8333 11.25V21.25C15.8333 21.6642 15.4975 22 15.0833 22C14.6691 22 14.3333 21.6642 14.3333 21.25V11.25C14.3333 10.8358 14.6691 10.5 15.0833 10.5Z",fill:"currentColor"}),(0,h.jsx)("path",{d:"M20.75 12.5C20.3358 12.5 20 12.8358 20 13.25V21.25C20 21.6642 20.3358 22 20.75 22C21.1642 22 21.5 21.6642 21.5 21.25V13.25C21.5 12.8358 21.1642 12.5 20.75 12.5Z",fill:"currentColor"}),(0,h.jsx)("path",{d:"M19.1183 1.52428C18.8555 1.20407 18.3829 1.15747 18.0627 1.42022C17.7425 1.68296 17.6959 2.15554 17.9587 2.47576L19.4145 4.25002L13 4.25002C12.5858 4.25002 12.25 4.58581 12.25 5.00002C12.25 5.41423 12.5858 5.75002 13 5.75002L19.4145 5.75002L17.9587 7.52428C17.6959 7.8445 17.7425 8.31708 18.0627 8.57983C18.3829 8.84257 18.8555 8.79598 19.1183 8.47576L21.5798 5.47576C21.8067 5.19919 21.8067 4.80085 21.5798 4.52428L19.1183 1.52428Z",fill:"currentColor"})]})),Cx=e=>(0,h.jsx)(xk,Object.assign({},e,{children:(0,h.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,h.jsx)("path",{opacity:.12,d:"M2 8.4C2 6.15979 2 5.03968 2.43597 4.18404C2.81947 3.43139 3.43139 2.81947 4.18404 2.43597C5.03968 2 6.15979 2 8.4 2H15.6C17.8402 2 18.9603 2 19.816 2.43597C20.5686 2.81947 21.1805 3.43139 21.564 4.18404C22 5.03968 22 6.15979 22 8.4V15.6C22 17.8402 22 18.9603 21.564 19.816C21.1805 20.5686 20.5686 21.1805 19.816 21.564C18.9603 22 17.8402 22 15.6 22H8.4C6.15979 22 5.03968 22 4.18404 21.564C3.43139 21.1805 2.81947 20.5686 2.43597 19.816C2 18.9603 2 17.8402 2 15.6V8.4Z",fill:"currentColor"}),(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.96644 1.25H14.0336C15.4053 1.25 16.4807 1.24999 17.3451 1.32061C18.2252 1.39252 18.9523 1.54138 19.6104 1.87671C20.6924 2.42798 21.572 3.30762 22.1233 4.38955C22.4586 5.04768 22.6075 5.77479 22.6794 6.65494C22.75 7.51926 22.75 8.59466 22.75 9.96632V14.0336C22.75 15.4052 22.75 16.4807 22.6794 17.3451C22.6075 18.2252 22.4586 18.9523 22.1233 19.6104C21.572 20.6924 20.6924 21.572 19.6104 22.1233C18.9523 22.4586 18.2252 22.6075 17.3451 22.6794C16.4807 22.75 15.4053 22.75 14.0337 22.75H9.96642C8.59476 22.75 7.51926 22.75 6.65494 22.6794C5.77479 22.6075 5.04768 22.4586 4.38955 22.1233C3.30762 21.572 2.42798 20.6924 1.87671 19.6104C1.54138 18.9523 1.39252 18.2252 1.32061 17.3451C1.24999 16.4807 1.25 15.4053 1.25 14.0336V9.96644C1.25 8.59473 1.24999 7.51928 1.32061 6.65494C1.39252 5.77479 1.54138 5.04768 1.87671 4.38955C2.42798 3.30762 3.30762 2.42798 4.38955 1.87671C5.04768 1.54138 5.77479 1.39252 6.65494 1.32061C7.51928 1.24999 8.59473 1.25 9.96644 1.25ZM2.75 12.75V14C2.75 15.4125 2.75058 16.4268 2.81563 17.2229C2.87996 18.0103 3.00359 18.518 3.21322 18.9295C3.62068 19.7291 4.27085 20.3793 5.07054 20.7868C5.48197 20.9964 5.9897 21.12 6.77708 21.1844C7.57322 21.2494 8.58749 21.25 10 21.25H11.25V12.75H2.75ZM11.25 11.25H2.75V10C2.75 8.58749 2.75058 7.57322 2.81563 6.77708C2.87996 5.9897 3.00359 5.48197 3.21322 5.07054C3.62068 4.27085 4.27085 3.62068 5.07054 3.21322C5.48197 3.00359 5.9897 2.87996 6.77708 2.81563C7.57322 2.75058 8.58749 2.75 10 2.75H11.25V11.25ZM12.75 12.75V21.25H14C15.4125 21.25 16.4268 21.2494 17.2229 21.1844C18.0103 21.12 18.518 20.9964 18.9295 20.7868C19.7291 20.3793 20.3793 19.7291 20.7868 18.9295C20.9964 18.518 21.12 18.0103 21.1844 17.2229C21.2494 16.4268 21.25 15.4125 21.25 14V12.75H12.75ZM21.25 11.25H12.75V2.75H14C15.4125 2.75 16.4268 2.75058 17.2229 2.81563C18.0103 2.87996 18.518 3.00359 18.9295 3.21322C19.7291 3.62068 20.3793 4.27085 20.7868 5.07054C20.9964 5.48197 21.12 5.9897 21.1844 6.77708C21.2494 7.57322 21.25 8.58749 21.25 10V11.25Z",fill:"currentColor"})]})})),CC=e=>(0,h.jsxs)(xk,Object.assign({},e,{children:[(0,h.jsx)("path",{opacity:"0.12",d:"M2 10C2 7.19974 2 5.79961 2.54497 4.73005C3.02433 3.78924 3.78924 3.02433 4.73005 2.54497C5.79961 2 7.19974 2 10 2H14C16.8003 2 18.2004 2 19.27 2.54497C20.2108 3.02433 20.9757 3.78924 21.455 4.73005C22 5.79961 22 7.19974 22 10V14C22 16.8003 22 18.2004 21.455 19.27C20.9757 20.2108 20.2108 20.9757 19.27 21.455C18.2004 22 16.8003 22 14 22H10C7.19974 22 5.79961 22 4.73005 21.455C3.78924 20.9757 3.02433 20.2108 2.54497 19.27C2 18.2004 2 16.8003 2 14V10Z",fill:"currentColor"}),(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.96644 1.25C8.59473 1.25 7.51928 1.24999 6.65494 1.32061C5.7748 1.39252 5.04769 1.54138 4.38955 1.87671C3.30762 2.42798 2.42798 3.30762 1.87671 4.38955C1.54138 5.04769 1.39252 5.7748 1.32061 6.65494C1.24999 7.51928 1.25 8.59471 1.25 9.96642V14.0336C1.25 15.4053 1.24999 16.4807 1.32061 17.3451C1.39252 18.2252 1.54138 18.9523 1.87671 19.6104C2.42798 20.6924 3.30762 21.572 4.38955 22.1233C5.04769 22.4586 5.7748 22.6075 6.65494 22.6794C7.51927 22.75 8.59469 22.75 9.96637 22.75H14.0336C15.4053 22.75 16.4807 22.75 17.3451 22.6794C18.2252 22.6075 18.9523 22.4586 19.6104 22.1233C20.6924 21.572 21.572 20.6924 22.1233 19.6104C22.4586 18.9523 22.6075 18.2252 22.6794 17.3451C22.75 16.4807 22.75 15.4053 22.75 14.0336V9.96642C22.75 8.59474 22.75 7.51927 22.6794 6.65494C22.6075 5.7748 22.4586 5.04769 22.1233 4.38955C21.572 3.30762 20.6924 2.42798 19.6104 1.87671C18.9523 1.54138 18.2252 1.39252 17.3451 1.32061C16.4807 1.24999 15.4053 1.25 14.0336 1.25H9.96644ZM5.07054 3.21322C5.48197 3.00359 5.9897 2.87996 6.77708 2.81563C7.57322 2.75058 8.58749 2.75 10 2.75H14C15.4125 2.75 16.4268 2.75058 17.2229 2.81563C18.0103 2.87996 18.518 3.00359 18.9295 3.21322C19.7291 3.62068 20.3793 4.27085 20.7868 5.07054C20.9964 5.48197 21.12 5.9897 21.1844 6.77708C21.2494 7.57322 21.25 8.58749 21.25 10V14C21.25 15.4125 21.2494 16.4268 21.1844 17.2229C21.12 18.0103 20.9964 18.518 20.7868 18.9295C20.3793 19.7291 19.7291 20.3793 18.9295 20.7868C18.518 20.9964 18.0103 21.12 17.2229 21.1844C16.4268 21.2494 15.4125 21.25 14 21.25H10C8.58749 21.25 7.57322 21.2494 6.77708 21.1844C5.9897 21.12 5.48197 20.9964 5.07054 20.7868C4.27085 20.3793 3.62068 19.7291 3.21322 18.9295C3.00359 18.518 2.87996 18.0103 2.81563 17.2229C2.75058 16.4268 2.75 15.4125 2.75 14V10C2.75 8.58749 2.75058 7.57322 2.81563 6.77708C2.87996 5.9897 3.00359 5.48197 3.21322 5.07054C3.62068 4.27085 4.27085 3.62068 5.07054 3.21322ZM17.5302 9.53033C17.8231 9.23744 17.8231 8.76256 17.5302 8.46967C17.2373 8.17678 16.7624 8.17678 16.4695 8.46967L12.9999 11.9393L11.5302 10.4697C11.2373 10.1768 10.7624 10.1768 10.4695 10.4697L6.46955 14.4697C6.17666 14.7626 6.17666 15.2374 6.46955 15.5303C6.76244 15.8232 7.23732 15.8232 7.53021 15.5303L10.9999 12.0607L12.4695 13.5303C12.6102 13.671 12.801 13.75 12.9999 13.75C13.1988 13.75 13.3896 13.671 13.5302 13.5303L17.5302 9.53033Z",fill:"currentColor"})]})),Cv=e=>{var{gradientVariant:t}=e,n=sJ(e,["gradientVariant"]);let r=g0(t);return(0,h.jsxs)(xk,Object.assign({},n,{children:[(0,h.jsx)("rect",{width:"20",height:"20",x:"2",y:"2",fill:r.fill("a"),opacity:"0.12",rx:"5"}),(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 1.25h-.034c-1.371 0-2.447 0-3.311.07-.88.073-1.607.221-2.265.557A5.75 5.75 0 001.877 4.39c-.336.658-.484 1.385-.556 2.265-.071.864-.071 1.94-.071 3.311v4.068c0 1.371 0 2.447.07 3.311.073.88.221 1.607.557 2.265a5.75 5.75 0 002.513 2.513c.658.336 1.385.485 2.265.556.864.071 1.94.071 3.311.071h4.068c1.371 0 2.447 0 3.311-.07.88-.072 1.607-.221 2.265-.557a5.75 5.75 0 002.513-2.513c.336-.658.485-1.385.556-2.265.071-.864.071-1.94.071-3.311V9.966c0-1.371 0-2.447-.07-3.311-.072-.88-.221-1.607-.557-2.265a5.75 5.75 0 00-2.513-2.513c-.658-.336-1.385-.484-2.265-.556-.864-.071-1.94-.071-3.311-.071H10zM5.07 3.213c.412-.21.92-.333 1.707-.397.796-.065 1.81-.066 3.223-.066h4c1.412 0 2.427 0 3.223.066.787.064 1.295.188 1.707.397a4.25 4.25 0 011.857 1.858c.21.411.333.919.397 1.706.065.796.066 1.81.066 3.223v4c0 1.412 0 2.427-.066 3.223-.064.787-.188 1.295-.397 1.707a4.251 4.251 0 01-1.857 1.857c-.412.21-.92.333-1.707.397-.796.065-1.81.066-3.223.066h-4c-1.413 0-2.427 0-3.223-.066-.787-.064-1.295-.188-1.706-.397a4.25 4.25 0 01-1.858-1.857c-.21-.412-.333-.92-.397-1.707-.065-.796-.066-1.81-.066-3.223v-4c0-1.413 0-2.427.066-3.223.064-.787.188-1.295.397-1.706a4.25 4.25 0 011.858-1.858zm13.069 5.68a.75.75 0 00-1.278-.786l-2.345 3.81a.93.93 0 01-1.64-.102c-.77-1.695-3.083-1.93-4.179-.424l-2.304 3.168a.75.75 0 101.213.882l2.304-3.168a.93.93 0 011.6.163c.806 1.772 3.264 1.925 4.284.268l2.345-3.81z",fill:r.fill("a")}),(0,h.jsx)("defs",{children:(0,h.jsxs)("linearGradient",{id:r.id("green","a"),x1:"1.25",y1:"2.61167",x2:"22.75",y2:"21.675",gradientUnits:"userSpaceOnUse",children:[(0,h.jsx)("stop",{stopColor:"#2461FF"}),(0,h.jsx)("stop",{offset:"0.83",stopColor:"#00FF66"})]})})]}))},Cj=e=>(0,h.jsxs)(xk,Object.assign({},e,{children:[(0,h.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M3.11 12.277c-.11-.46-.11-.95-.11-1.928V9.4c0-2.24 0-3.36.436-4.216a4 4 0 0 1 1.748-1.748C6.04 3 7.16 3 9.4 3h.949c.978 0 1.468 0 1.928.11.408.099.798.26 1.156.48.404.247.75.593 1.441 1.285l3.6 3.6c1.585 1.584 2.377 2.376 2.673 3.289a4 4 0 0 1 0 2.472c-.296.913-1.088 1.705-2.672 3.29l-.95.948c-1.584 1.585-2.376 2.377-3.289 2.673a4 4 0 0 1-2.472 0c-.913-.296-1.705-1.088-3.29-2.672l-3.6-3.6c-.691-.692-1.037-1.038-1.285-1.442a3.998 3.998 0 0 1-.478-1.156ZM10 12a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z",clipRule:"evenodd",opacity:.12}),(0,h.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M10 7.25a2.75 2.75 0 1 0 0 5.5 2.75 2.75 0 0 0 0-5.5ZM8.75 10a1.25 1.25 0 1 1 2.5 0 1.25 1.25 0 0 1-2.5 0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.452 2.381c-.548-.131-1.12-.131-2.01-.131H9.368c-1.092 0-1.958 0-2.655.057-.714.058-1.317.18-1.868.46a4.75 4.75 0 0 0-2.076 2.077c-.281.55-.403 1.154-.461 1.868-.057.697-.057 1.563-.057 2.655v1.075c0 .89 0 1.462.131 2.01.117.485.309.948.569 1.373.294.48.7.885 1.328 1.514l3.69 3.69c.772.771 1.384 1.383 1.917 1.836.546.464 1.059.805 1.647.996a4.75 4.75 0 0 0 2.936 0c.588-.192 1.101-.532 1.647-.996.533-.453 1.145-1.065 1.918-1.837l.995-.996c.773-.772 1.385-1.384 1.838-1.917.463-.546.803-1.059.995-1.647a4.75 4.75 0 0 0 0-2.936c-.192-.588-.532-1.101-.995-1.647-.453-.533-1.066-1.145-1.838-1.918l-3.69-3.689c-.628-.629-1.033-1.034-1.513-1.328a4.75 4.75 0 0 0-1.373-.569ZM10.349 3.75c1.014 0 1.399.005 1.753.09.332.08.649.21.94.389.31.19.585.459 1.302 1.176l3.6 3.6c.801.8 1.37 1.37 1.778 1.851.403.475.606.815.712 1.14a3.25 3.25 0 0 1 0 2.008c-.106.325-.31.665-.712 1.14-.409.481-.977 1.05-1.778 1.851l-.949.95c-.8.8-1.37 1.368-1.851 1.777-.475.403-.815.606-1.14.712a3.25 3.25 0 0 1-2.008 0c-.325-.106-.665-.31-1.14-.712-.481-.409-1.05-.977-1.851-1.778l-3.6-3.6c-.717-.717-.986-.992-1.176-1.303a3.25 3.25 0 0 1-.39-.94c-.084-.353-.089-.738-.089-1.752V9.4c0-1.133 0-1.937.052-2.566.05-.62.147-1.005.302-1.31a3.25 3.25 0 0 1 1.42-1.42c.305-.155.69-.251 1.31-.302.63-.051 1.434-.052 2.566-.052h.95Z",clipRule:"evenodd"})]})),CA=e=>(0,h.jsx)(xk,Object.assign({},e,{viewBox:"0 0 16 16",children:(0,h.jsx)("path",{fill:"currentColor",d:"M3.333 3.08v1h9.334v-1H3.333ZM3.333 6.747h9.334v1.666H3.333V6.747ZM3.333 10.747h9.334v2.333H3.333v-2.333Z"})})),Cw=e=>(0,h.jsx)(xk,Object.assign({},e,{viewBox:"0 0 16 16",children:(0,h.jsx)("circle",{cx:"8",cy:"8",r:"6",stroke:"currentColor",fill:"currentColor",fillOpacity:.12})})),Ck=e=>(0,h.jsxs)(xk,Object.assign({},e,{children:[(0,h.jsx)("path",{opacity:.12,d:"M2 11.6c0-3.36 0-5.04.654-6.324a6 6 0 0 1 2.622-2.622C6.56 2 8.24 2 11.6 2h.8c3.36 0 5.04 0 6.324.654a6 6 0 0 1 2.622 2.622C22 6.56 22 8.24 22 11.6v.8c0 3.36 0 5.04-.654 6.324a6 6 0 0 1-2.622 2.622C17.44 22 15.76 22 12.4 22h-.8c-3.36 0-5.04 0-6.324-.654a6 6 0 0 1-2.622-2.622C2 17.44 2 15.76 2 12.4v-.8Z",fill:"currentColor"}),(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.566 1.25c-1.651 0-2.937 0-3.968.084-1.047.086-1.897.262-2.662.652a6.75 6.75 0 0 0-2.95 2.95c-.39.765-.566 1.615-.652 2.662-.084 1.031-.084 2.317-.084 3.968v.868c0 1.651 0 2.937.084 3.968.086 1.047.262 1.897.652 2.662a6.75 6.75 0 0 0 2.95 2.95c.765.39 1.615.566 2.662.652 1.031.084 2.317.084 3.968.084h.868c1.651 0 2.937 0 3.968-.084 1.047-.086 1.897-.262 2.662-.652a6.75 6.75 0 0 0 2.95-2.95c.39-.765.566-1.615.652-2.662.084-1.031.084-2.317.084-3.968v-.868c0-1.651 0-2.937-.084-3.968-.086-1.047-.262-1.897-.652-2.662a6.75 6.75 0 0 0-2.95-2.95c-.765-.39-1.615-.566-2.662-.652-1.031-.084-2.317-.084-3.968-.084h-.868Zm-5.95 2.072c.519-.264 1.15-.415 2.104-.493.963-.078 2.187-.079 3.88-.079h.8c1.692 0 2.917 0 3.88.08.954.077 1.585.228 2.103.492a5.25 5.25 0 0 1 2.295 2.295c.264.518.415 1.15.493 2.103.078.963.079 2.187.079 3.88v.8c0 1.692 0 2.917-.08 3.88-.077.954-.228 1.585-.492 2.103a5.25 5.25 0 0 1-2.295 2.295c-.518.264-1.15.415-2.103.493-.963.078-2.188.079-3.88.079h-.8c-1.693 0-2.917 0-3.88-.08-.954-.077-1.585-.228-2.103-.492a5.25 5.25 0 0 1-2.295-2.295c-.264-.518-.415-1.15-.493-2.103-.078-.963-.079-2.188-.079-3.88v-.8c0-1.693 0-2.917.08-3.88.077-.954.228-1.585.492-2.103a5.25 5.25 0 0 1 2.295-2.295ZM7.75 8a.75.75 0 0 0-1.5 0v8a.75.75 0 0 0 1.5 0V8ZM12 10.25a.75.75 0 0 1 .75.75v5a.75.75 0 0 1-1.5 0v-5a.75.75 0 0 1 .75-.75ZM17.75 9a.75.75 0 0 0-1.5 0v7a.75.75 0 0 0 1.5 0V9Z",fill:"currentColor"})]})),CP=e=>(0,h.jsxs)(xk,Object.assign({},e,{children:[(0,h.jsx)("path",{d:"M10.3144 6.86888C10.0417 7.18061 9.56786 7.21219 9.25613 6.93943L7.50001 5.40283L7.50001 17.1667C7.50001 17.5809 7.16422 17.9167 6.75001 17.9167C6.3358 17.9167 6.00001 17.5809 6.00001 17.1667L6.00001 5.40283L4.24389 6.93943C3.93216 7.21219 3.45834 7.18061 3.18558 6.86888C2.91282 6.55715 2.9444 6.08333 3.25613 5.81057L6.25613 3.18557C6.5389 2.93814 6.96112 2.93814 7.24389 3.18557L10.2439 5.81057C10.5556 6.08333 10.5872 6.55715 10.3144 6.86888Z",fill:"currentColor"}),(0,h.jsx)("path",{d:"M17.0477 20.8144C16.736 20.5417 16.7044 20.0679 16.9772 19.7561L18.5138 18L6.74996 18C6.33575 18 5.99996 17.6642 5.99996 17.25C5.99996 16.8358 6.33575 16.5 6.74996 16.5L18.5138 16.5L16.9772 14.7439C16.7044 14.4322 16.736 13.9583 17.0477 13.6856C17.3595 13.4128 17.8333 13.4444 18.1061 13.7561L20.7311 16.7561C20.9785 17.0389 20.9785 17.4611 20.7311 17.7439L18.1061 20.7439C17.8333 21.0556 17.3595 21.0872 17.0477 20.8144Z",fill:"currentColor"})]})),CS=e=>(0,h.jsxs)(xk,Object.assign({},e,{children:[(0,h.jsx)("path",{fill:"currentColor",fillOpacity:.8,d:"M22 14.282v-7a.498.498 0 0 0-.757-.425L14.5 10.973c-.908.555-1.363.832-1.848.94-.43.096-.876.096-1.306 0-.485-.108-.94-.385-1.848-.94L2.757 6.857A.498.498 0 0 0 2 7.282v7c0 .991 0 1.487.142 1.932a3 3 0 0 0 .605 1.068c.309.351.734.606 1.583 1.116l5.2 3.12c.898.539 1.347.808 1.827.914a3 3 0 0 0 1.287 0c.479-.106.928-.375 1.826-.914l5.2-3.12c.85-.51 1.274-.765 1.583-1.116a3 3 0 0 0 .605-1.068c.142-.445.142-.94.142-1.932Z",opacity:.12}),(0,h.jsx)("path",{fill:"currentColor",fillOpacity:.8,fillRule:"evenodd",d:"M11.395.798a3.752 3.752 0 0 1 1.41.038l.233.061c.541.167 1.071.494 1.817.942l5.2 3.12c.808.484 1.357.804 1.761 1.264l.124.148c.28.354.494.756.632 1.187l.062.221c.123.525.116 1.115.116 1.939v4.564c0 .824.007 1.414-.116 1.939l-.062.221c-.137.431-.352.833-.632 1.187l-.124.148c-.404.46-.953.78-1.76 1.264l-5.2 3.12c-.747.448-1.277.775-1.818.942l-.233.061a3.752 3.752 0 0 1-1.41.038l-.2-.038c-.47-.103-.91-.328-1.459-.65l-.592-.353-5.2-3.12c-.706-.424-1.215-.721-1.601-1.097l-.16-.167a3.75 3.75 0 0 1-.692-1.152l-.063-.183c-.187-.582-.178-1.218-.178-2.16V9.718c0-.942-.009-1.577.178-2.16a3.75 3.75 0 0 1 .755-1.335l.16-.167c.386-.376.895-.673 1.601-1.097l5.2-3.12c.853-.512 1.424-.865 2.051-1.003l.2-.038ZM12.75 12.92v8.694c.274-.11.636-.32 1.334-.739l5.2-3.12c.892-.535 1.192-.726 1.405-.968l.145-.181a2.25 2.25 0 0 0 .31-.62l.032-.119c.067-.288.074-.674.074-1.585V9.718c0-.91-.007-1.297-.074-1.585l-.033-.12a2.254 2.254 0 0 0-.068-.182L12.75 12.92ZM2.856 8.014c-.098.307-.106.663-.106 1.704v4.564c0 1.04.008 1.397.106 1.704l.082.217c.093.212.219.41.372.584l.085.089c.213.206.54.41 1.32.879l5.2 3.12.603.357c.33.192.55.306.732.38V12.92L2.925 7.832c-.025.06-.049.12-.069.182Zm5.876 1.61L12 11.621l8.038-4.913c-.191-.122-.434-.27-.754-.463l-2.533-1.52-8.019 4.9Zm3.75-7.323a2.25 2.25 0 0 0-.964 0c-.331.072-.66.258-1.602.824l-5.2 3.12c-.321.193-.565.341-.756.463l3.335 2.038L15.3 3.855l-1.216-.73c-.825-.495-1.18-.7-1.477-.791l-.125-.033Z",clipRule:"evenodd"})]})),CL=e=>(0,h.jsxs)(xk,Object.assign({},e,{children:[(0,h.jsx)("path",{opacity:"0.12",d:"M13.566 2.59c-.404.247-.75.593-1.441 1.285L7 9c-1.09 1.09-1.636 1.636-1.927 2.224a4 4 0 000 3.552c.291.588.836 1.133 1.927 2.224 1.09 1.09 1.636 1.636 2.224 1.927a4 4 0 003.552 0C13.364 18.636 13.91 18.09 15 17l5.125-5.126c.692-.691 1.037-1.037 1.285-1.44.22-.359.38-.749.479-1.157.11-.46.11-.95.11-1.928V6.8c0-1.68 0-2.52-.327-3.162a3 3 0 00-1.31-1.311C19.718 2 18.878 2 17.198 2h-.549c-.978 0-1.467 0-1.928.11a4 4 0 00-1.156.48zM15.002 11a2 2 0 100-4 2 2 0 000 4z",fill:"currentColor"}),(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.002 6.25a2.75 2.75 0 100 5.5 2.75 2.75 0 000-5.5zM13.752 9a1.25 1.25 0 112.5 0 1.25 1.25 0 01-2.5 0z",fill:"currentColor"}),(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.557 1.25h.674c.813 0 1.469 0 2 .043.546.045 1.026.14 1.47.366a3.75 3.75 0 011.64 1.639c.226.444.32.924.365 1.47.043.531.043 1.187.043 2v.675c0 .889 0 1.461-.131 2.01a4.749 4.749 0 01-.569 1.372c-.294.48-.7.885-1.328 1.514l-1.407 1.407.44 2.196c.163.816.276 1.38.222 1.937-.048.49-.192.967-.424 1.402-.264.493-.67.9-1.26 1.488l-1.76 1.761a.75.75 0 01-1.142-.094L13.294 19.5a4.75 4.75 0 01-4.403.099c-.7-.347-1.327-.974-2.31-1.957l-.223-.223c-.983-.983-1.61-1.61-1.957-2.31a4.75 4.75 0 01.098-4.402L1.565 8.61a.75.75 0 01-.095-1.14l1.762-1.762c.588-.589.995-.996 1.488-1.26a3.75 3.75 0 011.402-.424c.556-.054 1.12.06 1.936.223l2.195.439 1.407-1.408c.629-.628 1.034-1.034 1.514-1.328a4.75 4.75 0 011.373-.569c.548-.131 1.12-.131 2.01-.131zM8.978 5.96l-1.106-.22c-.966-.194-1.298-.253-1.604-.223a2.25 2.25 0 00-.842.255c-.271.145-.515.378-1.212 1.075L3.157 7.904 5.419 9.52l.559-.558.38-.38 2.62-2.622zm-3.233 5.597c.2-.404.566-.803 1.46-1.7L11.03 6.03a.766.766 0 00.017-.017l1.608-1.608c.717-.717.993-.986 1.303-1.176.29-.178.608-.31.94-.39.353-.084.738-.089 1.752-.089h.55c.852 0 1.446 0 1.909.038.453.037.714.107.912.207.423.216.767.56.983.984.1.197.17.458.207.912.038.462.038 1.057.038 1.909v.55c0 1.013-.005 1.398-.09 1.752a3.25 3.25 0 01-.389.94c-.19.31-.459.585-1.175 1.302L14.47 16.47c-1.134 1.134-1.577 1.563-2.027 1.786a3.25 3.25 0 01-2.886 0c-.372-.184-.74-.51-1.495-1.256L9.53 15.53a.75.75 0 00-1.06-1.06L7 15.938c-.747-.756-1.072-1.123-1.256-1.495a3.25 3.25 0 010-2.886zm10.351 9.287L14.48 18.58l3.56-3.56.221 1.107c.194.967.252 1.298.222 1.605a2.25 2.25 0 01-.254.841c-.145.272-.378.515-1.075 1.212l-1.058 1.058z",fill:"currentColor"})]})),CM=e=>(0,h.jsxs)(xk,Object.assign({},e,{children:[(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",opacity:"0.12",d:"M2 10C2 7.19974 2 5.79961 2.54497 4.73005C3.02433 3.78924 3.78924 3.02433 4.73005 2.54497C5.79961 2 7.19974 2 10 2H14C16.8003 2 18.2004 2 19.27 2.54497C20.2108 3.02433 20.9757 3.78924 21.455 4.73005C22 5.79961 22 7.19974 22 10V14C22 16.8003 22 18.2004 21.455 19.27C20.9757 20.2108 20.2108 20.9757 19.27 21.455C18.2004 22 16.8003 22 14 22H10C7.19974 22 5.79961 22 4.73005 21.455C3.78924 20.9757 3.02433 20.2108 2.54497 19.27C2 18.2004 2 16.8003 2 14V10Z",fill:"currentColor"}),(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.96644 1.25C8.59472 1.25 7.51929 1.24999 6.65494 1.32061C5.77479 1.39252 5.04768 1.54138 4.38955 1.87671C3.30762 2.42798 2.42798 3.30762 1.87671 4.38955C1.54138 5.04768 1.39252 5.77479 1.32061 6.65494C1.24999 7.51929 1.25 8.59472 1.25 9.96644V14.0336C1.25 15.4053 1.24999 16.4807 1.32061 17.3451C1.39252 18.2252 1.54138 18.9523 1.87671 19.6104C2.42798 20.6924 3.30762 21.572 4.38955 22.1233C5.04768 22.4586 5.77479 22.6075 6.65494 22.6794C7.51927 22.75 8.59469 22.75 9.96637 22.75H14.0336C15.4053 22.75 16.4807 22.75 17.3451 22.6794C18.2252 22.6075 18.9523 22.4586 19.6104 22.1233C20.6924 21.572 21.572 20.6924 22.1233 19.6104C22.4586 18.9523 22.6075 18.2252 22.6794 17.3451C22.75 16.4807 22.75 15.4053 22.75 14.0336V9.96642C22.75 8.59473 22.75 7.51927 22.6794 6.65494C22.6075 5.77479 22.4586 5.04768 22.1233 4.38955C21.572 3.30762 20.6924 2.42798 19.6104 1.87671C18.9523 1.54138 18.2252 1.39252 17.3451 1.32061C16.4807 1.24999 15.4053 1.25 14.0336 1.25H9.96644ZM5.07054 3.21322C5.48197 3.00359 5.9897 2.87996 6.77708 2.81563C7.57322 2.75058 8.58749 2.75 10 2.75H14C15.4125 2.75 16.4268 2.75058 17.2229 2.81563C18.0103 2.87996 18.518 3.00359 18.9295 3.21322C19.7291 3.62068 20.3793 4.27085 20.7868 5.07054C20.9964 5.48197 21.12 5.9897 21.1844 6.77708C21.2494 7.57322 21.25 8.58749 21.25 10V14C21.25 15.4125 21.2494 16.4268 21.1844 17.2229C21.12 18.0103 20.9964 18.518 20.7868 18.9295C20.3793 19.7291 19.7291 20.3793 18.9295 20.7868C18.518 20.9964 18.0103 21.12 17.2229 21.1844C16.4268 21.2494 15.4125 21.25 14 21.25H10C8.58749 21.25 7.57322 21.2494 6.77708 21.1844C5.9897 21.12 5.48197 20.9964 5.07054 20.7868C4.27085 20.3793 3.62068 19.7291 3.21322 18.9295C3.00359 18.518 2.87996 18.0103 2.81563 17.2229C2.75058 16.4268 2.75 15.4125 2.75 14V10C2.75 8.58749 2.75058 7.57322 2.81563 6.77708C2.87996 5.9897 3.00359 5.48197 3.21322 5.07054C3.62068 4.27085 4.27085 3.62068 5.07054 3.21322Z",fill:"currentColor"}),(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.4796 12.2222L17.6085 12.2291L17.6029 10.7291L19.474 10.7222L19.4796 12.2222ZM15.3662 12.2375L13.124 12.2459L13.1184 10.7459L15.3606 10.7375L15.3662 12.2375ZM10.8817 12.2542L8.63945 12.2626L8.63386 10.7626L10.8761 10.7542L10.8817 12.2542ZM6.39719 12.2709L4.52607 12.2779L4.52048 10.7779L6.3916 10.7709L6.39719 12.2709Z",fill:"currentColor"})]})),CO=e=>(0,h.jsxs)(xk,Object.assign({},e,{children:[(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",opacity:"0.12",d:"M2 10C2 7.19974 2 5.79961 2.54497 4.73005C3.02433 3.78924 3.78924 3.02433 4.73005 2.54497C5.79961 2 7.19974 2 10 2H14C16.8003 2 18.2004 2 19.27 2.54497C20.2108 3.02433 20.9757 3.78924 21.455 4.73005C22 5.79961 22 7.19974 22 10V14C22 16.8003 22 18.2004 21.455 19.27C20.9757 20.2108 20.2108 20.9757 19.27 21.455C18.2004 22 16.8003 22 14 22H10C7.19974 22 5.79961 22 4.73005 21.455C3.78924 20.9757 3.02433 20.2108 2.54497 19.27C2 18.2004 2 16.8003 2 14V10Z",fill:"currentColor"}),(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.96644 1.25C8.59472 1.25 7.51929 1.24999 6.65494 1.32061C5.77479 1.39252 5.04768 1.54138 4.38955 1.87671C3.30762 2.42798 2.42798 3.30762 1.87671 4.38955C1.54138 5.04768 1.39252 5.77479 1.32061 6.65494C1.24999 7.51929 1.25 8.59472 1.25 9.96644V14.0336C1.25 15.4053 1.24999 16.4807 1.32061 17.3451C1.39252 18.2252 1.54138 18.9523 1.87671 19.6104C2.42798 20.6924 3.30762 21.572 4.38955 22.1233C5.04768 22.4586 5.77479 22.6075 6.65494 22.6794C7.51927 22.75 8.59469 22.75 9.96637 22.75H14.0336C15.4053 22.75 16.4807 22.75 17.3451 22.6794C18.2252 22.6075 18.9523 22.4586 19.6104 22.1233C20.6924 21.572 21.572 20.6924 22.1233 19.6104C22.4586 18.9523 22.6075 18.2252 22.6794 17.3451C22.75 16.4807 22.75 15.4053 22.75 14.0336V9.96642C22.75 8.59473 22.75 7.51927 22.6794 6.65494C22.6075 5.77479 22.4586 5.04768 22.1233 4.38955C21.572 3.30762 20.6924 2.42798 19.6104 1.87671C18.9523 1.54138 18.2252 1.39252 17.3451 1.32061C16.4807 1.24999 15.4053 1.25 14.0336 1.25H9.96644ZM5.07054 3.21322C5.48197 3.00359 5.9897 2.87996 6.77708 2.81563C7.57322 2.75058 8.58749 2.75 10 2.75H14C15.4125 2.75 16.4268 2.75058 17.2229 2.81563C18.0103 2.87996 18.518 3.00359 18.9295 3.21322C19.7291 3.62068 20.3793 4.27085 20.7868 5.07054C20.9964 5.48197 21.12 5.9897 21.1844 6.77708C21.2494 7.57322 21.25 8.58749 21.25 10V14C21.25 15.4125 21.2494 16.4268 21.1844 17.2229C21.12 18.0103 20.9964 18.518 20.7868 18.9295C20.3793 19.7291 19.7291 20.3793 18.9295 20.7868C18.518 20.9964 18.0103 21.12 17.2229 21.1844C16.4268 21.2494 15.4125 21.25 14 21.25H10C8.58749 21.25 7.57322 21.2494 6.77708 21.1844C5.9897 21.12 5.48197 20.9964 5.07054 20.7868C4.27085 20.3793 3.62068 19.7291 3.21322 18.9295C3.00359 18.518 2.87996 18.0103 2.81563 17.2229C2.75058 16.4268 2.75 15.4125 2.75 14V10C2.75 8.58749 2.75058 7.57322 2.81563 6.77708C2.87996 5.9897 3.00359 5.48197 3.21322 5.07054C3.62068 4.27085 4.27085 3.62068 5.07054 3.21322Z",fill:"currentColor"}),(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.6749 8.04877L17.1069 9.06975L16.2884 7.81273L17.8564 6.79175L18.6749 8.04877ZM15.2278 10.2932L13.3488 11.5167L12.5303 10.2597L14.4093 9.03622L15.2278 10.2932ZM11.4697 12.7402L9.59064 13.9637L8.77217 12.7067L10.6512 11.4832L11.4697 12.7402ZM7.71158 15.1872L6.14354 16.2082L5.32507 14.9511L6.89311 13.9302L7.71158 15.1872Z",fill:"currentColor"})]})),CT=e=>(0,h.jsxs)(xk,Object.assign({viewBox:"0 0 25 26"},e,{children:[(0,h.jsx)("g",{filter:"url(#filter0_dd_0_1)",children:(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.5143 8.8317C21.968 9.98998 22.2171 11.2515 22.2171 12.5685C22.2171 18.1883 17.699 22.7441 12.1256 22.7441C6.55221 22.7441 2.03409 18.1883 2.03409 12.5685C2.03409 6.94864 6.55221 2.39287 12.1256 2.39287C13.5315 2.39287 14.8732 2.68387 16.0922 3.20967L16.8081 2.5398L18.2922 4.15244L16.4787 5.84925C16.442 5.88357 16.4117 5.92331 16.3884 5.96664L16.3794 5.84326C15.833 5.49116 15.2409 5.2049 14.614 4.99557C13.8315 4.73429 12.9949 4.59287 12.1256 4.59287C7.75719 4.59287 4.21591 8.16366 4.21591 12.5685C4.21591 16.9733 7.75719 20.5441 12.1256 20.5441C16.494 20.5441 20.0353 16.9733 20.0353 12.5685C20.0353 11.7267 19.9059 10.9153 19.6662 10.1536C19.487 9.58397 19.246 9.04207 18.9512 8.53587C18.9373 8.51198 18.9233 8.48816 18.9091 8.46443L18.7121 8.4348C18.7433 8.4172 18.7726 8.39579 18.7993 8.37079L20.6127 6.67398C20.8923 6.41238 20.7476 5.94084 20.3704 5.88413L19.5058 5.75415C19.2954 5.72251 19.1348 5.54804 19.1192 5.3341L19.1013 5.08745L19.0969 5.02683M21.5143 8.8317L22.0968 8.28662C23.5973 6.88263 22.9896 4.43546 21.1557 3.81945C20.6834 1.92943 18.3085 1.13581 16.8081 2.5398L18.2922 4.15244C18.5717 3.89084 19.0273 4.07149 19.0552 4.45505L19.0969 5.02683M19.5729 5.3005L19.363 5.31604Z",className:"invertedFill"})}),(0,h.jsxs)("mask",{id:"path-2-outside-1_0_1",maskUnits:"userSpaceOnUse",x:"1.21591",y:"0.0292969",width:"23",height:"24",fill:"black",children:[(0,h.jsx)("rect",{fill:"white",x:"1.21591",y:"0.0292969",width:"23",height:"24"}),(0,h.jsx)("path",{d:"M12.1256 7.56053C13.1053 7.56053 14.0187 7.84656 14.7883 8.34033L13.9582 9.13878C13.4129 8.84191 12.7888 8.67341 12.1256 8.67341C9.99219 8.67341 8.26272 10.4173 8.26272 12.5685C8.26272 14.7196 9.99219 16.4635 12.1256 16.4635C14.259 16.4635 15.9885 14.7196 15.9885 12.5685C15.9885 11.9036 15.8232 11.2776 15.5319 10.7299L16.3536 9.93958C16.8219 10.7037 17.0921 11.6043 17.0921 12.5685C17.0921 15.3343 14.8685 17.5764 12.1256 17.5764C9.38264 17.5764 7.15905 15.3343 7.15905 12.5685C7.15905 9.80266 9.38264 7.56053 12.1256 7.56053Z"}),(0,h.jsx)("path",{d:"M12.237 10.2544C12.4096 10.2544 12.5775 10.2742 12.7388 10.3116L11.468 11.534C11.0228 11.9622 11.0062 12.6732 11.4309 13.1221C11.8556 13.571 12.5608 13.5878 13.0059 13.1596L14.3695 11.848C14.4316 12.0547 14.4651 12.2739 14.4651 12.5011C14.4651 13.7418 13.4675 14.7477 12.237 14.7477C11.0065 14.7477 10.0089 13.7418 10.0089 12.5011C10.0089 11.2603 11.0065 10.2544 12.237 10.2544Z"}),(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.7121 8.4348L18.9091 8.46442C19.6241 9.66341 20.0353 11.0675 20.0353 12.5685C20.0353 16.9733 16.494 20.5441 12.1256 20.5441C7.75719 20.5441 4.21591 16.9733 4.21591 12.5685C4.21591 8.16366 7.75719 4.59287 12.1256 4.59287C13.6915 4.59287 15.1511 5.05168 16.3794 5.84326L16.3884 5.96664C16.4117 5.92331 16.442 5.88357 16.4787 5.84925L18.2922 4.15244C18.5717 3.89083 19.0273 4.07149 19.0552 4.45505L19.1192 5.3341C19.1348 5.54804 19.2954 5.72251 19.5058 5.75415L20.3704 5.88413C20.7476 5.94084 20.8923 6.41238 20.6127 6.67398L18.7993 8.37079C18.7726 8.39579 18.7433 8.4172 18.7121 8.4348ZM12.3487 11.6184L16.4398 7.49313L16.383 6.80637L16.1483 7.03218C15.0214 6.19827 13.6305 5.70574 12.1256 5.70574C8.36674 5.70574 5.31959 8.77829 5.31959 12.5685C5.31959 16.3586 8.36674 19.4312 12.1256 19.4312C15.8844 19.4312 18.9316 16.3586 18.9316 12.5685C18.9316 11.1068 18.4784 9.75188 17.706 8.63874L17.9088 8.44364L17.1708 8.37962L12.976 12.2569L12.5446 12.6719C12.3665 12.8432 12.0844 12.8365 11.9146 12.6569C11.7447 12.4774 11.7513 12.1929 11.9294 12.0217L12.3487 11.6184Z"})]}),(0,h.jsx)("path",{d:"M12.1256 7.56053C13.1053 7.56053 14.0187 7.84656 14.7883 8.34033L13.9582 9.13878C13.4129 8.84191 12.7888 8.67341 12.1256 8.67341C9.99219 8.67341 8.26272 10.4173 8.26272 12.5685C8.26272 14.7196 9.99219 16.4635 12.1256 16.4635C14.259 16.4635 15.9885 14.7196 15.9885 12.5685C15.9885 11.9036 15.8232 11.2776 15.5319 10.7299L16.3536 9.93958C16.8219 10.7037 17.0921 11.6043 17.0921 12.5685C17.0921 15.3343 14.8685 17.5764 12.1256 17.5764C9.38264 17.5764 7.15905 15.3343 7.15905 12.5685C7.15905 9.80266 9.38264 7.56053 12.1256 7.56053Z",fill:"currentColor"}),(0,h.jsx)("path",{d:"M12.237 10.2544C12.4096 10.2544 12.5775 10.2742 12.7388 10.3116L11.468 11.534C11.0228 11.9622 11.0062 12.6732 11.4309 13.1221C11.8556 13.571 12.5608 13.5878 13.0059 13.1596L14.3695 11.848C14.4316 12.0547 14.4651 12.2739 14.4651 12.5011C14.4651 13.7418 13.4675 14.7477 12.237 14.7477C11.0065 14.7477 10.0089 13.7418 10.0089 12.5011C10.0089 11.2603 11.0065 10.2544 12.237 10.2544Z",fill:"currentColor"}),(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.7121 8.4348L18.9091 8.46442C19.6241 9.66341 20.0353 11.0675 20.0353 12.5685C20.0353 16.9733 16.494 20.5441 12.1256 20.5441C7.75719 20.5441 4.21591 16.9733 4.21591 12.5685C4.21591 8.16366 7.75719 4.59287 12.1256 4.59287C13.6915 4.59287 15.1511 5.05168 16.3794 5.84326L16.3884 5.96664C16.4117 5.92331 16.442 5.88357 16.4787 5.84925L18.2922 4.15244C18.5717 3.89083 19.0273 4.07149 19.0552 4.45505L19.1192 5.3341C19.1348 5.54804 19.2954 5.72251 19.5058 5.75415L20.3704 5.88413C20.7476 5.94084 20.8923 6.41238 20.6127 6.67398L18.7993 8.37079C18.7726 8.39579 18.7433 8.4172 18.7121 8.4348ZM12.3487 11.6184L16.4398 7.49313L16.383 6.80637L16.1483 7.03218C15.0214 6.19827 13.6305 5.70574 12.1256 5.70574C8.36674 5.70574 5.31959 8.77829 5.31959 12.5685C5.31959 16.3586 8.36674 19.4312 12.1256 19.4312C15.8844 19.4312 18.9316 16.3586 18.9316 12.5685C18.9316 11.1068 18.4784 9.75188 17.706 8.63874L17.9088 8.44364L17.1708 8.37962L12.976 12.2569L12.5446 12.6719C12.3665 12.8432 12.0844 12.8365 11.9146 12.6569C11.7447 12.4774 11.7513 12.1929 11.9294 12.0217L12.3487 11.6184Z",fill:"currentColor"}),(0,h.jsx)("path",{d:"M12.1256 7.56053C13.1053 7.56053 14.0187 7.84656 14.7883 8.34033L13.9582 9.13878C13.4129 8.84191 12.7888 8.67341 12.1256 8.67341C9.99219 8.67341 8.26272 10.4173 8.26272 12.5685C8.26272 14.7196 9.99219 16.4635 12.1256 16.4635C14.259 16.4635 15.9885 14.7196 15.9885 12.5685C15.9885 11.9036 15.8232 11.2776 15.5319 10.7299L16.3536 9.93958C16.8219 10.7037 17.0921 11.6043 17.0921 12.5685C17.0921 15.3343 14.8685 17.5764 12.1256 17.5764C9.38264 17.5764 7.15905 15.3343 7.15905 12.5685C7.15905 9.80266 9.38264 7.56053 12.1256 7.56053Z",className:"invertedStroke",strokeWidth:"6",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#path-2-outside-1_0_1)"}),(0,h.jsx)("path",{d:"M12.237 10.2544C12.4096 10.2544 12.5775 10.2742 12.7388 10.3116L11.468 11.534C11.0228 11.9622 11.0062 12.6732 11.4309 13.1221C11.8556 13.571 12.5608 13.5878 13.0059 13.1596L14.3695 11.848C14.4316 12.0547 14.4651 12.2739 14.4651 12.5011C14.4651 13.7418 13.4675 14.7477 12.237 14.7477C11.0065 14.7477 10.0089 13.7418 10.0089 12.5011C10.0089 11.2603 11.0065 10.2544 12.237 10.2544Z",className:"invertedStroke",strokeWidth:"6",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#path-2-outside-1_0_1)"}),(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.7121 8.4348L18.9091 8.46442C19.6241 9.66341 20.0353 11.0675 20.0353 12.5685C20.0353 16.9733 16.494 20.5441 12.1256 20.5441C7.75719 20.5441 4.21591 16.9733 4.21591 12.5685C4.21591 8.16366 7.75719 4.59287 12.1256 4.59287C13.6915 4.59287 15.1511 5.05168 16.3794 5.84326L16.3884 5.96664C16.4117 5.92331 16.442 5.88357 16.4787 5.84925L18.2922 4.15244C18.5717 3.89083 19.0273 4.07149 19.0552 4.45505L19.1192 5.3341C19.1348 5.54804 19.2954 5.72251 19.5058 5.75415L20.3704 5.88413C20.7476 5.94084 20.8923 6.41238 20.6127 6.67398L18.7993 8.37079C18.7726 8.39579 18.7433 8.4172 18.7121 8.4348ZM12.3487 11.6184L16.4398 7.49313L16.383 6.80637L16.1483 7.03218C15.0214 6.19827 13.6305 5.70574 12.1256 5.70574C8.36674 5.70574 5.31959 8.77829 5.31959 12.5685C5.31959 16.3586 8.36674 19.4312 12.1256 19.4312C15.8844 19.4312 18.9316 16.3586 18.9316 12.5685C18.9316 11.1068 18.4784 9.75188 17.706 8.63874L17.9088 8.44364L17.1708 8.37962L12.976 12.2569L12.5446 12.6719C12.3665 12.8432 12.0844 12.8365 11.9146 12.6569C11.7447 12.4774 11.7513 12.1929 11.9294 12.0217L12.3487 11.6184Z",className:"invertedStroke",strokeWidth:"6",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#path-2-outside-1_0_1)"}),(0,h.jsx)("defs",{children:(0,h.jsxs)("filter",{id:"filter0_dd_0_1",x:"0.884091",y:"0.676019",width:"23.2087",height:"24.368",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,h.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,h.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,h.jsx)("feOffset",{}),(0,h.jsx)("feGaussianBlur",{stdDeviation:"0.575"}),(0,h.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,h.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0588235 0 0 0 0 0.0588235 0 0 0 0 0.0941176 0 0 0 0.12 0"}),(0,h.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_0_1"}),(0,h.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,h.jsx)("feOffset",{dy:"1.15"}),(0,h.jsx)("feGaussianBlur",{stdDeviation:"0.575"}),(0,h.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,h.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.054902 0 0 0 0 0.054902 0 0 0 0 0.203922 0 0 0 0.16 0"}),(0,h.jsx)("feBlend",{mode:"normal",in2:"effect1_dropShadow_0_1",result:"effect2_dropShadow_0_1"}),(0,h.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect2_dropShadow_0_1",result:"shape"})]})})]})),CD=e=>(0,h.jsxs)(xk,Object.assign({viewBox:"0 0 31 32"},e,{children:[(0,h.jsxs)("g",{filter:"url(#filter0_dd_1383_43)",children:[(0,h.jsx)("path",{d:"M4.17969 12.8959C4.17969 9.84493 4.17969 8.31945 4.77344 7.15414C5.29572 6.1291 6.1291 5.29572 7.15414 4.77344C8.31945 4.17969 9.84493 4.17969 12.8959 4.17969H17.254C20.3049 4.17969 21.8304 4.17969 22.9957 4.77344C24.0207 5.29572 24.8541 6.1291 25.3764 7.15414C25.9702 8.31945 25.9702 9.84493 25.9702 12.8959V17.254C25.9702 20.3049 25.9702 21.8304 25.3764 22.9957C24.8541 24.0207 24.0207 24.8541 22.9957 25.3764C21.8304 25.9702 20.3049 25.9702 17.254 25.9702H12.8959C9.84493 25.9702 8.31945 25.9702 7.15414 25.3764C6.1291 24.8541 5.29572 24.0207 4.77344 22.9957C4.17969 21.8304 4.17969 20.3049 4.17969 17.254V12.8959Z",fill:"currentColor"}),(0,h.jsx)("path",{d:"M3.43693 6.47315C3.01435 7.30251 2.84069 8.19458 2.75889 9.19574C2.67966 10.1655 2.67967 11.3608 2.67969 12.8324L2.67969 12.8959V17.254L2.67969 17.3175C2.67967 18.789 2.67966 19.9844 2.75889 20.9541C2.84069 21.9553 3.01435 22.8473 3.43693 23.6767C4.10302 24.984 5.16587 26.0468 6.47315 26.7129C7.30251 27.1355 8.19458 27.3092 9.19574 27.391C10.1655 27.4702 11.3608 27.4702 12.8323 27.4702H12.8959H17.254H17.3175C18.7891 27.4702 19.9844 27.4702 20.9541 27.391C21.9553 27.3092 22.8473 27.1355 23.6767 26.7129C24.984 26.0468 26.0468 24.984 26.7129 23.6767C27.1355 22.8473 27.3092 21.9553 27.391 20.9541C27.4702 19.9844 27.4702 18.7891 27.4702 17.3175V17.254V12.8959V12.8323C27.4702 11.3608 27.4702 10.1655 27.391 9.19574C27.3092 8.19458 27.1355 7.30251 26.7129 6.47316C26.0468 5.16587 24.984 4.10302 23.6767 3.43693C22.8473 3.01435 21.9553 2.84069 20.9541 2.75889C19.9844 2.67966 18.789 2.67967 17.3175 2.67969L17.254 2.67969H12.8959L12.8324 2.67969C11.3608 2.67967 10.1655 2.67966 9.19574 2.75889C8.19458 2.84069 7.30251 3.01435 6.47315 3.43693C5.16588 4.10302 4.10302 5.16588 3.43693 6.47315Z",className:"invertedStroke",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,h.jsx)("path",{d:"M4.17969 12.8959C4.17969 9.84493 4.17969 8.31945 4.77344 7.15414C5.29572 6.1291 6.1291 5.29572 7.15414 4.77344C8.31945 4.17969 9.84493 4.17969 12.8959 4.17969H17.254C20.3049 4.17969 21.8304 4.17969 22.9957 4.77344C24.0207 5.29572 24.8541 6.1291 25.3764 7.15414C25.9702 8.31945 25.9702 9.84493 25.9702 12.8959V17.254C25.9702 20.3049 25.9702 21.8304 25.3764 22.9957C24.8541 24.0207 24.0207 24.8541 22.9957 25.3764C21.8304 25.9702 20.3049 25.9702 17.254 25.9702H12.8959C9.84493 25.9702 8.31945 25.9702 7.15414 25.3764C6.1291 24.8541 5.29572 24.0207 4.77344 22.9957C4.17969 21.8304 4.17969 20.3049 4.17969 17.254V12.8959Z",className:"invertedFill"}),(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.8581 3.36133C11.3636 3.36132 10.1919 3.36132 9.25013 3.43826C8.2912 3.51661 7.499 3.67879 6.78195 4.04415C5.60316 4.64477 4.64477 5.60316 4.04415 6.78195C3.67879 7.499 3.51661 8.2912 3.43826 9.25013C3.36132 10.1919 3.36132 11.3636 3.36133 12.8581V17.2893C3.36132 18.7838 3.36132 19.9556 3.43826 20.8973C3.51661 21.8562 3.67879 22.6484 4.04415 23.3655C4.64477 24.5443 5.60316 25.5027 6.78195 26.1033C7.499 26.4686 8.2912 26.6308 9.25013 26.7092C10.1918 26.7861 11.3635 26.7861 12.858 26.7861H17.2893C18.7838 26.7861 19.9556 26.7861 20.8973 26.7092C21.8562 26.6308 22.6484 26.4686 23.3655 26.1033C24.5443 25.5027 25.5027 24.5443 26.1033 23.3655C26.4686 22.6484 26.6308 21.8562 26.7092 20.8973C26.7861 19.9556 26.7861 18.7839 26.7861 17.2894V12.8581C26.7861 11.3636 26.7861 10.1918 26.7092 9.25013C26.6308 8.2912 26.4686 7.499 26.1033 6.78195C25.5027 5.60316 24.5443 4.64477 23.3655 4.04415C22.6484 3.67879 21.8562 3.51661 20.8973 3.43826C19.9556 3.36132 18.7838 3.36132 17.2893 3.36133H12.8581ZM7.5239 5.50031C7.97216 5.27191 8.52535 5.13721 9.38322 5.06712C10.2506 4.99625 11.3557 4.99561 12.8947 4.99561H17.2528C18.7917 4.99561 19.8968 4.99625 20.7642 5.06712C21.6221 5.13721 22.1753 5.27191 22.6235 5.50031C23.4948 5.94425 24.2032 6.65262 24.6471 7.5239C24.8755 7.97216 25.0102 8.52535 25.0803 9.38322C25.1512 10.2506 25.1518 11.3557 25.1518 12.8947V17.2528C25.1518 18.7917 25.1512 19.8968 25.0803 20.7642C25.0102 21.6221 24.8755 22.1753 24.6471 22.6235C24.2032 23.4948 23.4948 24.2032 22.6235 24.6471C22.1753 24.8755 21.6221 25.0102 20.7642 25.0803C19.8968 25.1512 18.7917 25.1518 17.2528 25.1518H12.8947C11.3557 25.1518 10.2506 25.1512 9.38322 25.0803C8.52535 25.0102 7.97216 24.8755 7.5239 24.6471C6.65262 24.2032 5.94425 23.4948 5.50031 22.6235C5.27191 22.1753 5.13721 21.6221 5.06712 20.7642C4.99625 19.8968 4.99561 18.7917 4.99561 17.2528V12.8947C4.99561 11.3557 4.99625 10.2506 5.06712 9.38322C5.13721 8.52535 5.27191 7.97216 5.50031 7.5239C5.94425 6.65262 6.65262 5.94425 7.5239 5.50031Z",fill:"currentColor"}),(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.3457 10.7699L20.6373 11.8823L19.7456 10.5128L21.454 9.40039L22.3457 10.7699ZM18.59 13.2153L16.5428 14.5484L15.651 13.1788L17.6983 11.8458L18.59 13.2153ZM14.4955 15.8814L12.4482 17.2144L11.5565 15.8448L13.6038 14.5118L14.4955 15.8814ZM10.4009 18.5474L8.69252 19.6598L7.80078 18.2903L9.5092 17.1779L10.4009 18.5474Z",fill:"currentColor"}),(0,h.jsx)("defs",{children:(0,h.jsxs)("filter",{id:"filter0_dd_1383_43",x:"0.0296799",y:"0.0296818",width:"30.0905",height:"31.2405",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,h.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,h.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,h.jsx)("feOffset",{}),(0,h.jsx)("feGaussianBlur",{stdDeviation:"0.575"}),(0,h.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,h.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0588235 0 0 0 0 0.0588235 0 0 0 0 0.0941176 0 0 0 0.12 0"}),(0,h.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_1383_43"}),(0,h.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,h.jsx)("feOffset",{dy:"1.15"}),(0,h.jsx)("feGaussianBlur",{stdDeviation:"0.575"}),(0,h.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,h.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.054902 0 0 0 0 0.054902 0 0 0 0 0.203922 0 0 0 0.16 0"}),(0,h.jsx)("feBlend",{mode:"normal",in2:"effect1_dropShadow_1383_43",result:"effect2_dropShadow_1383_43"}),(0,h.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect2_dropShadow_1383_43",result:"shape"})]})})]})),CI=e=>(0,h.jsxs)(xk,Object.assign({viewBox:"0 0 32 33"},e,{children:[(0,h.jsxs)("g",{filter:"url(#filter0_dd_1383_49)",children:[(0,h.jsx)("path",{d:"M5.17969 13.8959C5.17969 10.8449 5.17969 9.31945 5.77344 8.15414C6.29572 7.1291 7.1291 6.29572 8.15414 5.77344C9.31945 5.17969 10.8449 5.17969 13.8959 5.17969H18.254C21.3049 5.17969 22.8304 5.17969 23.9957 5.77344C25.0207 6.29572 25.8541 7.1291 26.3764 8.15414C26.9702 9.31945 26.9702 10.8449 26.9702 13.8959V18.254C26.9702 21.3049 26.9702 22.8304 26.3764 23.9957C25.8541 25.0207 25.0207 25.8541 23.9957 26.3764C22.8304 26.9702 21.3049 26.9702 18.254 26.9702H13.8959C10.8449 26.9702 9.31945 26.9702 8.15414 26.3764C7.1291 25.8541 6.29572 25.0207 5.77344 23.9957C5.17969 22.8304 5.17969 21.3049 5.17969 18.254V13.8959Z",fill:"currentColor"}),(0,h.jsx)("path",{d:"M4.43693 7.47315C4.01435 8.30251 3.84069 9.19458 3.75889 10.1957C3.67966 11.1655 3.67967 12.3608 3.67969 13.8324L3.67969 13.8959V18.254L3.67969 18.3175C3.67967 19.789 3.67966 20.9844 3.75889 21.9541C3.84069 22.9553 4.01435 23.8473 4.43693 24.6767C5.10302 25.984 6.16587 27.0468 7.47315 27.7129C8.30251 28.1355 9.19458 28.3092 10.1957 28.391C11.1655 28.4702 12.3608 28.4702 13.8323 28.4702H13.8959H18.254H18.3175C19.7891 28.4702 20.9844 28.4702 21.9541 28.391C22.9553 28.3092 23.8473 28.1355 24.6767 27.7129C25.984 27.0468 27.0468 25.984 27.7129 24.6767C28.1355 23.8473 28.3092 22.9553 28.391 21.9541C28.4702 20.9844 28.4702 19.7891 28.4702 18.3175V18.254V13.8959V13.8323C28.4702 12.3608 28.4702 11.1655 28.391 10.1957C28.3092 9.19458 28.1355 8.30251 27.7129 7.47316C27.0468 6.16587 25.984 5.10302 24.6767 4.43693C23.8473 4.01435 22.9553 3.84069 21.9541 3.75889C20.9844 3.67966 19.789 3.67967 18.3175 3.67969L18.254 3.67969H13.8959L13.8324 3.67969C12.3608 3.67967 11.1655 3.67966 10.1957 3.75889C9.19458 3.84069 8.30251 4.01435 7.47315 4.43693C6.16588 5.10302 5.10302 6.16588 4.43693 7.47315Z",className:"invertedStroke",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,h.jsx)("path",{d:"M5.17969 13.8959C5.17969 10.8449 5.17969 9.31945 5.77344 8.15414C6.29572 7.1291 7.1291 6.29572 8.15414 5.77344C9.31945 5.17969 10.8449 5.17969 13.8959 5.17969H18.254C21.3049 5.17969 22.8304 5.17969 23.9957 5.77344C25.0207 6.29572 25.8541 7.1291 26.3764 8.15414C26.9702 9.31945 26.9702 10.8449 26.9702 13.8959V18.254C26.9702 21.3049 26.9702 22.8304 26.3764 23.9957C25.8541 25.0207 25.0207 25.8541 23.9957 26.3764C22.8304 26.9702 21.3049 26.9702 18.254 26.9702H13.8959C10.8449 26.9702 9.31945 26.9702 8.15414 26.3764C7.1291 25.8541 6.29572 25.0207 5.77344 23.9957C5.17969 22.8304 5.17969 21.3049 5.17969 18.254V13.8959Z",className:"invertedFill"}),(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.8581 4.36133C12.3636 4.36132 11.1919 4.36132 10.2501 4.43826C9.2912 4.51661 8.499 4.67879 7.78195 5.04415C6.60316 5.64477 5.64477 6.60316 5.04415 7.78195C4.67879 8.499 4.51661 9.2912 4.43826 10.2501C4.36132 11.1919 4.36132 12.3636 4.36133 13.8581V18.2893C4.36132 19.7838 4.36132 20.9556 4.43826 21.8973C4.51661 22.8562 4.67879 23.6484 5.04415 24.3655C5.64477 25.5443 6.60316 26.5027 7.78195 27.1033C8.499 27.4686 9.2912 27.6308 10.2501 27.7092C11.1918 27.7861 12.3635 27.7861 13.858 27.7861H18.2893C19.7838 27.7861 20.9556 27.7861 21.8973 27.7092C22.8562 27.6308 23.6484 27.4686 24.3655 27.1033C25.5443 26.5027 26.5027 25.5443 27.1033 24.3655C27.4686 23.6484 27.6308 22.8562 27.7092 21.8973C27.7861 20.9556 27.7861 19.7839 27.7861 18.2894V13.8581C27.7861 12.3636 27.7861 11.1918 27.7092 10.2501C27.6308 9.2912 27.4686 8.499 27.1033 7.78195C26.5027 6.60316 25.5443 5.64477 24.3655 5.04415C23.6484 4.67879 22.8562 4.51661 21.8973 4.43826C20.9556 4.36132 19.7838 4.36132 18.2893 4.36133H13.8581ZM8.5239 6.50031C8.97216 6.27191 9.52535 6.13721 10.3832 6.06712C11.2506 5.99625 12.3557 5.99561 13.8947 5.99561H18.2528C19.7917 5.99561 20.8968 5.99625 21.7642 6.06712C22.6221 6.13721 23.1753 6.27191 23.6235 6.50031C24.4948 6.94425 25.2032 7.65262 25.6471 8.5239C25.8755 8.97216 26.0102 9.52535 26.0803 10.3832C26.1512 11.2506 26.1518 12.3557 26.1518 13.8947V18.2528C26.1518 19.7917 26.1512 20.8968 26.0803 21.7642C26.0102 22.6221 25.8755 23.1753 25.6471 23.6235C25.2032 24.4948 24.4948 25.2032 23.6235 25.6471C23.1753 25.8755 22.6221 26.0102 21.7642 26.0803C20.8968 26.1512 19.7917 26.1518 18.2528 26.1518H13.8947C12.3557 26.1518 11.2506 26.1512 10.3832 26.0803C9.52535 26.0102 8.97216 25.8755 8.5239 25.6471C7.65262 25.2032 6.94425 24.4948 6.50031 23.6235C6.27191 23.1753 6.13721 22.6221 6.06712 21.7642C5.99625 20.8968 5.99561 19.7917 5.99561 18.2528V13.8947C5.99561 12.3557 5.99625 11.2506 6.06712 10.3832C6.13721 9.52535 6.27191 8.97216 6.50031 8.5239C6.94425 7.65262 7.65262 6.94425 8.5239 6.50031Z",fill:"currentColor"}),(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24.2128 16.4155L22.1742 16.3988L22.1875 14.7646L24.2261 14.7812L24.2128 16.4155ZM19.7313 16.3789L17.2884 16.359L17.3017 14.7247L19.7446 14.7447L19.7313 16.3789ZM14.8454 16.339L12.4025 16.3191L12.4158 14.6849L14.8588 14.7048L14.8454 16.339ZM9.95958 16.2992L7.921 16.2825L7.93434 14.6483L9.97292 14.6649L9.95958 16.2992Z",fill:"currentColor"}),(0,h.jsx)("defs",{children:(0,h.jsxs)("filter",{id:"filter0_dd_1383_49",x:"0.926728",y:"0.926729",width:"30.2964",height:"31.5493",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,h.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,h.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,h.jsx)("feOffset",{}),(0,h.jsx)("feGaussianBlur",{stdDeviation:"0.626476"}),(0,h.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,h.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0588235 0 0 0 0 0.0588235 0 0 0 0 0.0941176 0 0 0 0.12 0"}),(0,h.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_1383_49"}),(0,h.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,h.jsx)("feOffset",{dy:"1.25295"}),(0,h.jsx)("feGaussianBlur",{stdDeviation:"0.626476"}),(0,h.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,h.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.054902 0 0 0 0 0.054902 0 0 0 0 0.203922 0 0 0 0.16 0"}),(0,h.jsx)("feBlend",{mode:"normal",in2:"effect1_dropShadow_1383_49",result:"effect2_dropShadow_1383_49"}),(0,h.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect2_dropShadow_1383_49",result:"shape"})]})})]})),Cz=e=>(0,h.jsxs)(xk,Object.assign({},e,{children:[(0,h.jsx)("path",{fill:"currentColor",d:"M19.544 3.75c-1.39-1.433-4.636-1.791-6.085-1.791-6.955.895-9.563 4.477-10.432 9.85-.87 5.373 5.216 9.85 6.954 10.746 1.74.895 6.955 0 7.824-.896.87-.895 1.74-2.686 0-3.581-1.738-.896-.869-2.687-.869-3.582 0-.896 2.608-1.791 4.347-3.582 1.738-1.791 0-5.373-1.739-7.164z",opacity:"0.12"}),(0,h.jsx)("path",{fill:"currentColor",d:"M14.57 9.107a1.906 1.906 0 100-3.812 1.906 1.906 0 000 3.812zM9.137 10.727a1.81 1.81 0 100-3.622 1.81 1.81 0 000 3.622zM9.137 14.158a1.43 1.43 0 11-2.86 0 1.43 1.43 0 012.86 0zM10.185 19.114a1.43 1.43 0 100-2.86 1.43 1.43 0 000 2.86z"}),(0,h.jsx)("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M18.81 13.81c-1.385.966-2.442 1.703-1.533 2.938.247.294.577.478.905.662.392.22.783.438 1.03.841 1.614 2.49-1.216 4.994-3.572 5.415-4.493 1.088-8.794-.549-11.502-3.95C-1.9 11.957 4.394.402 14.185 1.164c3.236.165 6.764 1.844 7.83 5.1 1.378 4.353-1.243 6.18-3.205 7.548zM14.074 2.589C5.507 1.921.004 12.066 5.261 18.833c2.375 2.977 6.113 4.395 10.043 3.444l.042-.01.043-.008c.852-.152 1.838-.71 2.414-1.423.277-.342.411-.66.445-.928.03-.242-.008-.528-.236-.879l-.01-.016-.01-.016c-.014-.023-.056-.085-.416-.288a8.782 8.782 0 00-.091-.05c-.306-.17-.872-.48-1.301-.99l-.03-.036-.029-.038c-.418-.569-.697-1.259-.597-2.033.096-.737.503-1.286.866-1.661.363-.376.811-.708 1.21-.99l.414-.291c.278-.193.545-.38.826-.591.816-.614 1.459-1.239 1.815-2.012.333-.723.491-1.745-.005-3.315-.809-2.46-3.613-3.962-6.542-4.111l-.019-.001-.019-.002z"})]})),CE=e=>(0,h.jsxs)(xk,Object.assign({},e,{children:[(0,h.jsx)("path",{fill:"currentColor",d:"M2.32698 3.63803C2 4.27976 2 5.11984 2 6.8V17.2C2 18.8802 2 19.7202 2.32698 20.362C2.6146 20.9265 3.07354 21.3854 3.63803 21.673C4.27976 22 5.11984 22 6.8 22H12H17.5C18.8978 22 19.5967 22 20.1481 21.7716C20.8831 21.4672 21.4672 20.8831 21.7716 20.1481C22 19.5967 22 18.8978 22 17.5V17C22 16.07 22 15.605 21.8978 15.2235C21.6204 14.1883 20.8117 13.3796 19.7765 13.1022C19.395 13 18.93 13 18 13L12 20V6.8C12 5.11984 12 4.27976 11.673 3.63803C11.3854 3.07354 10.9265 2.6146 10.362 2.32698C9.72024 2 8.88016 2 7.2 2H6.8C5.11984 2 4.27976 2 3.63803 2.32698C3.07354 2.6146 2.6146 3.07354 2.32698 3.63803Z",opacity:"0.12"}),(0,h.jsx)("path",{fill:"currentColor",d:"M8 17C8 17.5523 7.55228 18 7 18C6.44772 18 6 17.5523 6 17C6 16.4477 6.44772 16 7 16C7.55228 16 8 16.4477 8 17Z"}),(0,h.jsx)("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M6.7679 1.25C5.95506 1.24999 5.29944 1.24999 4.76853 1.29336C4.2219 1.33803 3.74175 1.43239 3.29754 1.65873C2.59193 2.01825 2.01825 2.59193 1.65873 3.29754C1.43239 3.74175 1.33803 4.2219 1.29336 4.76853C1.24999 5.29944 1.24999 5.95505 1.25 6.76788V17.2321C1.24999 18.0449 1.24999 18.7006 1.29336 19.2315C1.33803 19.7781 1.43239 20.2582 1.65873 20.7025C2.01825 21.4081 2.59193 21.9817 3.29754 22.3413C3.74175 22.5676 4.2219 22.662 4.76853 22.7066C5.29944 22.75 5.95505 22.75 6.76788 22.75H17.5266C18.203 22.75 18.7485 22.75 19.1925 22.7197C19.6491 22.6886 20.0528 22.6229 20.4351 22.4645C21.3539 22.0839 22.0839 21.3539 22.4645 20.4351C22.6229 20.0528 22.6886 19.6491 22.7197 19.1925C22.75 18.7485 22.75 18.203 22.75 17.5266L22.75 16.8842C22.7503 16.0663 22.7505 15.5081 22.6222 15.0294C22.2755 13.7353 21.2647 12.7245 19.9706 12.3778C19.7807 12.3269 19.5782 12.2962 19.3521 12.2778L19.7907 11.7467C20.3053 11.1243 20.6574 10.6984 20.8642 10.243C21.3632 9.14398 21.3027 7.8719 20.7017 6.82515C20.4526 6.39148 20.0617 6.00085 19.4905 5.43004L19.3226 5.26222C18.7015 4.64075 18.2775 4.21651 17.8111 3.95918C16.6835 3.33701 15.3154 3.33706 14.1878 3.95933C13.7355 4.20889 13.3232 4.61539 12.7324 5.20648C12.7262 5.05176 12.7179 4.90597 12.7066 4.76853C12.662 4.2219 12.5676 3.74175 12.3413 3.29754C11.9817 2.59193 11.4081 2.01825 10.7025 1.65873C10.2582 1.43239 9.77811 1.33803 9.23147 1.29336C8.70056 1.24999 8.04495 1.24999 7.23212 1.25H6.7679ZM11.25 7.00026C11.25 6.99985 11.25 6.99944 11.25 6.99902V6.8C11.25 5.94755 11.2494 5.35331 11.2116 4.89068C11.1745 4.43681 11.1054 4.17604 11.0048 3.97852C10.789 3.55516 10.4448 3.21095 10.0215 2.99524C9.82396 2.8946 9.5632 2.82547 9.10932 2.78838C8.64669 2.75058 8.05245 2.75 7.2 2.75H6.8C5.94755 2.75 5.35331 2.75058 4.89068 2.78838C4.43681 2.82547 4.17604 2.8946 3.97852 2.99524C3.55516 3.21095 3.21095 3.55516 2.99524 3.97852C2.8946 4.17604 2.82547 4.43681 2.78838 4.89068C2.75058 5.35331 2.75 5.94755 2.75 6.8V17.2C2.75 18.0525 2.75058 18.6467 2.78838 19.1093C2.82547 19.5632 2.8946 19.824 2.99524 20.0215C3.21095 20.4448 3.55516 20.789 3.97852 21.0048C4.17604 21.1054 4.43681 21.1745 4.89068 21.2116C5.35331 21.2494 5.94755 21.25 6.8 21.25H11.25V20.0051C11.25 20.0014 11.25 19.9977 11.25 19.994V7.00026ZM12.75 17.9145V7.31029L13.6491 6.4111C14.3923 5.66788 14.6571 5.41355 14.9125 5.27263C15.5891 4.89927 16.4099 4.89924 17.0865 5.27254C17.3419 5.41344 17.6067 5.66775 18.35 6.41091C19.0317 7.0926 19.2644 7.33436 19.4009 7.57211C19.7615 8.20016 19.7978 8.96341 19.4984 9.62284C19.385 9.87246 19.1764 10.1352 18.5623 10.8785L12.75 17.9145ZM12.75 20.2697V21.25H17.5C18.2092 21.25 18.7035 21.2496 19.0904 21.2232C19.4706 21.1973 19.692 21.1487 19.861 21.0787C20.4123 20.8504 20.8504 20.4124 21.0787 19.861C21.1487 19.692 21.1973 19.4706 21.2232 19.0904C21.2496 18.7035 21.25 18.2092 21.25 17.5V17C21.25 16.0217 21.2436 15.6797 21.1733 15.4177C20.9653 14.6412 20.3588 14.0347 19.5823 13.8267C19.3328 13.7598 19.0107 13.7508 18.1358 13.7501L12.75 20.2697Z"})]})),CH=e=>(0,h.jsxs)(xk,Object.assign({},e,{children:[(0,h.jsx)("path",{fill:"currentColor",d:"M13.6 2H10.4C8.15979 2 7.03969 2 6.18404 2.43597C5.43139 2.81947 4.81947 3.43139 4.43597 4.18404C4 5.03969 4 6.15979 4 8.4V9C4 9 8 11 12 11C16 11 20 9 20 9V8.4C20 6.15979 20 5.03969 19.564 4.18404C19.1805 3.43139 18.5686 2.81947 17.816 2.43597C16.9603 2 15.8402 2 13.6 2Z",opacity:"0.12"}),(0,h.jsx)("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M7.16822 1.25C5.00432 1.25 3.25014 3.00418 3.25014 5.16808V8.98478C3.24995 8.99447 3.24995 9.00416 3.25014 9.01384V10.5978C3.25014 12.3541 4.24243 13.9597 5.8133 14.7451L7.92711 15.802C8.66545 16.1712 9.07667 16.9787 8.94097 17.793L8.75354 18.9175C8.41918 20.9237 9.96627 22.75 12.0001 22.75C14.034 22.75 15.5811 20.9237 15.2467 18.9175L15.0593 17.793C14.9236 16.9787 15.3348 16.1712 16.0732 15.802L18.187 14.7451C19.7579 13.9597 20.7501 12.3541 20.7501 10.5978V9.01243C20.7503 9.00369 20.7503 8.99494 20.7501 8.98619V5.16808C20.7501 3.00418 18.996 1.25 16.8321 1.25H7.16822ZM19.2501 8.54432V5.16808C19.2501 3.83261 18.1675 2.75 16.8321 2.75H13.7501V4C13.7501 4.41421 13.4144 4.75 13.0001 4.75C12.5859 4.75 12.2501 4.41421 12.2501 4V2.75H9.75014V6C9.75014 6.41421 9.41435 6.75 9.00014 6.75C8.58593 6.75 8.25014 6.41421 8.25014 6V2.75H7.16822C5.83275 2.75 4.75014 3.83261 4.75014 5.16808V8.54433C4.80645 8.57193 4.8687 8.6019 4.93666 8.63389C5.31492 8.81189 5.86859 9.05148 6.55902 9.29163C7.94338 9.77314 9.85777 10.25 12.0001 10.25C14.1425 10.25 16.0569 9.77314 17.4412 9.29163C18.1317 9.05148 18.6853 8.81189 19.0636 8.63389C19.1316 8.6019 19.1938 8.57192 19.2501 8.54432ZM4.75014 10.1955V10.5978C4.75014 11.786 5.42142 12.8721 6.48412 13.4035L8.59793 14.4604C9.92526 15.124 10.6645 16.5758 10.4206 18.0396L10.2331 19.1641C10.0511 20.256 10.8932 21.25 12.0001 21.25C13.1071 21.25 13.9491 20.256 13.7671 19.1641L13.5797 18.0396C13.3358 16.5758 14.075 15.124 15.4023 14.4604L17.5162 13.4035C18.5789 12.8721 19.2501 11.786 19.2501 10.5978V10.1955C18.8872 10.3531 18.4443 10.5309 17.934 10.7084C16.4434 11.2269 14.3578 11.75 12.0001 11.75C9.64249 11.75 7.55688 11.2269 6.06624 10.7084C5.55593 10.5309 5.11303 10.3531 4.75014 10.1955Z"})]})),CV=e=>(0,h.jsxs)(xk,Object.assign({},e,{children:[(0,h.jsx)("circle",{opacity:.12,cx:12,cy:12,r:5,fill:"currentColor"}),(0,h.jsx)("path",{d:"M12 1C12.5523 1 13 1.44771 13 2L13 4C13 4.55228 12.5523 5 12 5C11.4477 5 11 4.55229 11 4L11 2C11 1.44772 11.4477 1 12 1Z",fill:"currentColor"}),(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.0001 0.990845C12.6149 0.990845 13.1134 1.48928 13.1134 2.10413L13.1134 4.08329C13.1134 4.69814 12.6149 5.19657 12.0001 5.19657C11.3852 5.19657 10.8868 4.69814 10.8868 4.08329L10.8868 2.10413C10.8868 1.48928 11.3852 0.990845 12.0001 0.990845ZM12.0001 18.8033C12.6149 18.8033 13.1134 19.3018 13.1134 19.9166L13.1134 21.8958C13.1134 22.5106 12.6149 23.0091 12.0001 23.0091C11.3852 23.0091 10.8868 22.5106 10.8868 21.8958L10.8868 19.9166C10.8868 19.3018 11.3852 18.8033 12.0001 18.8033ZM11.9998 7.8021C9.6814 7.8021 7.80193 9.68157 7.80193 12C7.80193 14.3185 9.6814 16.1979 11.9998 16.1979C14.3183 16.1979 16.1978 14.3185 16.1978 12C16.1978 9.68157 14.3183 7.8021 11.9998 7.8021ZM6.30193 12C6.30193 8.85315 8.85297 6.3021 11.9998 6.3021C15.1467 6.3021 17.6978 8.85315 17.6978 12C17.6978 15.1469 15.1467 17.6979 11.9998 17.6979C8.85297 17.6979 6.30193 15.1469 6.30193 12ZM2.10449 10.8867C1.48964 10.8867 0.991211 11.3851 0.991211 12C0.991211 12.6148 1.48964 13.1133 2.10449 13.1133H4.08366C4.6985 13.1133 5.19694 12.6148 5.19694 12C5.19694 11.3851 4.6985 10.8867 4.08366 10.8867H2.10449ZM19.917 10.8867C19.3021 10.8867 18.8037 11.3851 18.8037 12C18.8037 12.6148 19.3021 13.1133 19.917 13.1133H21.8962C22.511 13.1133 23.0094 12.6148 23.0094 12C23.0094 11.3851 22.511 10.8867 21.8962 10.8867H19.917ZM3.79101 3.79042C4.22577 3.35566 4.93066 3.35567 5.36542 3.79044L6.84982 5.27486C7.28458 5.70962 7.28458 6.41451 6.84981 6.84927C6.41504 7.28403 5.71015 7.28403 5.27539 6.84926L3.79099 5.36484C3.35623 4.93007 3.35624 4.22518 3.79101 3.79042ZM17.1504 17.1498C17.5851 16.7151 18.29 16.7151 18.7248 17.1498L20.2092 18.6342C20.6439 19.069 20.6439 19.7739 20.2092 20.2086C19.7744 20.6434 19.0695 20.6434 18.6348 20.2086L17.1504 18.7242C16.7156 18.2895 16.7156 17.5846 17.1504 17.1498ZM3.791 18.6347C3.35624 19.0694 3.35624 19.7743 3.791 20.2091C4.22576 20.6438 4.93065 20.6438 5.36542 20.2091L6.84979 18.7247C7.28456 18.2899 7.28456 17.585 6.84979 17.1503C6.41503 16.7155 5.71014 16.7155 5.27538 17.1503L3.791 18.6347ZM17.1504 5.27528C16.7156 5.71004 16.7156 6.41494 17.1504 6.8497C17.5851 7.28446 18.29 7.28446 18.7248 6.8497L20.2092 5.36532C20.6439 4.93056 20.6439 4.22567 20.2092 3.79091C19.7744 3.35614 19.0695 3.35614 18.6348 3.79091L17.1504 5.27528Z",fill:"currentColor"})]})),CF=e=>(0,h.jsxs)(xk,Object.assign({},e,{children:[(0,h.jsx)("path",{opacity:.12,d:"M3.09375 11.4547C3.09375 16.6747 7.21936 20.9063 12.3086 20.9063C16.2264 20.9063 19.5732 18.3985 20.9062 14.8625C19.8505 15.3711 18.6716 15.6554 17.4279 15.6554C12.9042 15.6554 9.23696 11.894 9.23696 7.254C9.23696 5.31345 9.87839 3.52657 10.9556 2.10425C6.50784 2.77548 3.09375 6.70615 3.09375 11.4547Z",fill:"currentColor"}),(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.6004 1.72107C11.7562 1.98333 11.7377 2.31385 11.5535 2.55704C10.5725 3.85229 9.98696 5.48094 9.98696 7.25396C9.98696 11.4978 13.3362 14.9054 17.4279 14.9054C18.556 14.9054 19.6239 14.6478 20.5807 14.1868C20.857 14.0537 21.1864 14.1021 21.4126 14.3092C21.6388 14.5162 21.7162 14.8401 21.608 15.127C20.1719 18.9364 16.558 21.6563 12.3086 21.6563C6.78732 21.6563 2.34375 17.0708 2.34375 11.4547C2.34375 6.34384 6.02053 2.0905 10.8437 1.36261C11.1454 1.31709 11.4445 1.45881 11.6004 1.72107ZM9.36549 3.29348C6.14967 4.52009 3.84375 7.70264 3.84375 11.4547C3.84375 16.2785 7.6514 20.1563 12.3086 20.1563C15.2827 20.1563 17.9084 18.5773 19.4197 16.1773C18.7789 16.3266 18.1122 16.4054 17.4279 16.4054C12.4721 16.4054 8.48696 12.2901 8.48696 7.25396C8.48696 5.83655 8.80221 4.49281 9.36549 3.29348Z",fill:"currentColor"})]})),CB=e=>(0,h.jsx)(xk,Object.assign({},e,{children:(0,h.jsx)("path",{d:"M7.52524 22.9993C7.2661 23.0012 7.00938 22.9493 6.77132 22.8469C6.53326 22.7445 6.31902 22.5939 6.14215 22.4045L5.82983 22.0921L5.44316 22.345L4.78879 22.9993H0L3.36108 19.6383L3.04876 19.2665C2.84135 19.0784 2.67588 18.8488 2.56313 18.5926C2.45038 18.3363 2.39289 18.0592 2.3944 17.7793C2.39368 17.5225 2.44617 17.2683 2.54856 17.0329C2.65094 16.7974 2.801 16.5856 2.98928 16.411L16.8054 2.59493C16.9823 2.40552 17.1965 2.25486 17.4346 2.15247C17.6726 2.05008 17.9293 1.99818 18.1885 2.00005C18.4454 1.99843 18.6998 2.0505 18.9354 2.15295C19.1711 2.25539 19.3827 2.40593 19.5567 2.59493L22.7244 5.88165C22.9122 6.05825 23.0618 6.2714 23.164 6.50798C23.2663 6.74457 23.319 6.99957 23.319 7.25731C23.319 7.51504 23.2663 7.77005 23.164 8.00663C23.0618 8.24322 22.9122 8.45637 22.7244 8.63297L8.90834 22.4491C8.7271 22.6297 8.51104 22.7716 8.27329 22.8662C8.03553 22.9608 7.78103 23.0061 7.52524 22.9993ZM3.73288 17.8685L7.52524 21.6609L14.2177 14.9685L10.4253 11.191L3.73288 17.8685ZM11.5258 10.0904L15.3033 13.8679L21.966 7.20526L18.1885 3.42776L11.5258 10.0904Z",fill:"currentColor"})})),CR=e=>(0,h.jsxs)(xk,Object.assign({viewBox:"0 0 31 33"},e,{children:[(0,h.jsx)("g",{filter:"url(#filter0_dd_1373_19)",children:(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M25.7417 6.23664C25.7417 6.09417 25.7076 5.95967 25.6471 5.84086C25.5633 5.67624 25.4288 5.54173 25.2641 5.4579C25.1453 5.39739 25.0108 5.36328 24.8684 5.36328H12.0591C11.5767 5.36328 11.1857 5.7543 11.1857 6.23664C11.1857 6.71899 11.5767 7.11 12.0591 7.11H22.7599L5.61908 24.2508C5.27801 24.5919 5.27801 25.1448 5.61908 25.4859C5.96015 25.827 6.51313 25.827 6.8542 25.4859L23.995 8.34513V19.0459C23.995 19.5283 24.386 19.9193 24.8684 19.9193C25.3507 19.9193 25.7417 19.5283 25.7417 19.0459V6.23664ZM20.995 15.5878V19.0459C20.995 21.1851 22.7292 22.9193 24.8684 22.9193C27.0076 22.9193 28.7417 21.1851 28.7417 19.0459V6.23664C28.7417 4.09744 27.0076 2.36328 24.8684 2.36328H12.0591C9.91985 2.36328 8.18569 4.09744 8.18569 6.23664C8.18569 8.37584 9.91985 10.11 12.0591 10.11H15.5172L3.49777 22.1295C1.98512 23.6421 1.98513 26.0946 3.49776 27.6072C5.0104 29.1199 7.46288 29.1199 8.97552 27.6072L20.995 15.5878Z",className:"invertedFill"})}),(0,h.jsx)("path",{d:"M12.0591 7.11C11.5767 7.11 11.1857 6.71899 11.1857 6.23664C11.1857 5.7543 11.5767 5.36328 12.0591 5.36328H24.8684C25.3507 5.36328 25.7417 5.7543 25.7417 6.23664V19.0459C25.7417 19.5283 25.3507 19.9193 24.8684 19.9193C24.386 19.9193 23.995 19.5283 23.995 19.0459V8.34512L6.8542 25.4859C6.51313 25.827 5.96015 25.827 5.61908 25.4859C5.27801 25.1448 5.27801 24.5919 5.61908 24.2508L22.7599 7.11H12.0591Z",fill:"currentColor"}),(0,h.jsx)("defs",{children:(0,h.jsxs)("filter",{id:"filter0_dd_1373_19",x:"1.19152",y:"1.19152",width:"28.722",height:"29.8937",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,h.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,h.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,h.jsx)("feOffset",{}),(0,h.jsx)("feGaussianBlur",{stdDeviation:"0.58588"}),(0,h.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,h.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0588235 0 0 0 0 0.0588235 0 0 0 0 0.0941176 0 0 0 0.12 0"}),(0,h.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_1373_19"}),(0,h.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,h.jsx)("feOffset",{dy:"1.17176"}),(0,h.jsx)("feGaussianBlur",{stdDeviation:"0.58588"}),(0,h.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,h.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.054902 0 0 0 0 0.054902 0 0 0 0 0.203922 0 0 0 0.16 0"}),(0,h.jsx)("feBlend",{mode:"normal",in2:"effect1_dropShadow_1373_19",result:"effect2_dropShadow_1373_19"}),(0,h.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect2_dropShadow_1373_19",result:"shape"})]})})]})),CY=e=>(0,h.jsxs)(xk,Object.assign({viewBox:"0 0 32 33"},e,{children:[(0,h.jsx)("g",{filter:"url(#filter0_dd_1383_13)",children:(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.89961 14.7968C3.08522 13.5116 1.89961 11.3966 1.89961 9.00039C1.89961 5.07917 5.07839 1.90039 8.99961 1.90039C10.7798 1.90039 12.4069 2.55553 13.6531 3.63785C14.3179 3.17306 15.1269 2.90039 15.9996 2.90039L22.9996 2.90039C25.264 2.90039 27.0996 4.73602 27.0996 7.00039L27.0996 9.7243C27.5717 9.92414 28.014 10.2165 28.3987 10.6013C29.9999 12.2024 29.9999 14.7984 28.3987 16.3995L27.9182 16.8801C29.2628 18.172 30.0996 19.9885 30.0996 22.0004C30.0996 25.9216 26.9208 29.1004 22.9996 29.1004C21.2195 29.1004 19.5923 28.4453 18.3461 27.3629C17.6813 27.8277 16.8723 28.1004 15.9996 28.1004L8.99961 28.1004C6.73524 28.1004 4.89961 26.2648 4.89961 24.0004L4.89961 14.7968Z",className:"invertedFill"})}),(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M25.25 22C25.25 20.7574 24.2426 19.75 23 19.75C21.7574 19.75 20.75 20.7574 20.75 22C20.75 23.2426 21.7574 24.25 23 24.25C24.2426 24.25 25.25 23.2426 25.25 22ZM23 18.25C25.0711 18.25 26.75 19.9289 26.75 22C26.75 24.0711 25.0711 25.75 23 25.75C20.9289 25.75 19.25 24.0711 19.25 22C19.25 19.9289 20.9289 18.25 23 18.25ZM11.25 9C11.25 7.75736 10.2426 6.75 9 6.75C7.75736 6.75 6.75 7.75736 6.75 9C6.75 10.2426 7.75736 11.25 9 11.25C10.2426 11.25 11.25 10.2426 11.25 9ZM9.75 12.675C11.4617 12.3275 12.75 10.8142 12.75 9C12.75 6.92893 11.0711 5.25 9 5.25C6.92893 5.25 5.25 6.92893 5.25 9C5.25 10.8142 6.53832 12.3275 8.25 12.675L8.25 24C8.25 24.4142 8.58579 24.75 9 24.75L16 24.75C16.4142 24.75 16.75 24.4142 16.75 24L16.75 7.75L22.25 7.75L22.25 14.1893L21.0303 12.9697C20.7374 12.6768 20.2626 12.6768 19.9697 12.9697C19.6768 13.2626 19.6768 13.7374 19.9697 14.0303L22.4697 16.5303C22.7626 16.8232 23.2374 16.8232 23.5303 16.5303L26.0303 14.0303C26.3232 13.7374 26.3232 13.2626 26.0303 12.9697C25.7374 12.6768 25.2626 12.6768 24.9697 12.9697L23.75 14.1893L23.75 7C23.75 6.58579 23.4142 6.25 23 6.25L16 6.25C15.5858 6.25 15.25 6.58579 15.25 7L15.25 23.25L9.75 23.25L9.75 12.675Z",fill:"currentColor"}),(0,h.jsx)("defs",{children:(0,h.jsxs)("filter",{id:"filter0_dd_1383_13",x:"0.74961",y:"0.750391",width:"30.5",height:"30.65",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,h.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,h.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,h.jsx)("feOffset",{}),(0,h.jsx)("feGaussianBlur",{stdDeviation:"0.575"}),(0,h.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,h.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0588235 0 0 0 0 0.0588235 0 0 0 0 0.0941176 0 0 0 0.12 0"}),(0,h.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_1383_13"}),(0,h.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,h.jsx)("feOffset",{dy:"1.15"}),(0,h.jsx)("feGaussianBlur",{stdDeviation:"0.575"}),(0,h.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,h.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.054902 0 0 0 0 0.054902 0 0 0 0 0.203922 0 0 0 0.16 0"}),(0,h.jsx)("feBlend",{mode:"normal",in2:"effect1_dropShadow_1383_13",result:"effect2_dropShadow_1383_13"}),(0,h.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect2_dropShadow_1383_13",result:"shape"})]})})]})),CG=e=>(0,h.jsxs)(xk,Object.assign({viewBox:"0 0 33 32"},e,{children:[(0,h.jsx)("g",{clipPath:"url(#clip0_1383_26)",children:(0,h.jsxs)("g",{filter:"url(#filter0_dd_1383_26)",children:[(0,h.jsx)("path",{d:"M11.0466 26.3997C10.7734 26.4017 10.5027 26.347 10.2518 26.2391C10.0008 26.1311 9.77495 25.9723 9.58848 25.7726L9.25923 25.4434L8.16174 26.3997H3.45263C3.3274 26.3997 3.26469 26.2483 3.35324 26.1598L6.65661 22.8564L6.32736 22.4645C6.1087 22.2662 5.93426 22.0242 5.8154 21.754C5.69654 21.4839 5.63592 21.1917 5.63751 20.8966C5.63676 20.6259 5.69209 20.358 5.80003 20.1097C5.90797 19.8615 6.06616 19.6383 6.26465 19.4542L20.8299 4.88891C21.0164 4.68923 21.2423 4.5304 21.4932 4.42246C21.7442 4.31451 22.0148 4.2598 22.288 4.26177C22.5589 4.26006 22.8271 4.31496 23.0755 4.42296C23.3239 4.53095 23.547 4.68966 23.7304 4.88891L27.07 8.35385C27.2679 8.54002 27.4256 8.76474 27.5333 9.01415C27.6411 9.26356 27.6968 9.53239 27.6968 9.8041C27.6968 10.0758 27.6411 10.3446 27.5333 10.5941C27.4256 10.8435 27.2679 11.0682 27.07 11.2544L12.5047 25.8196C12.3136 26.0101 12.0858 26.1597 11.8352 26.2594C11.5845 26.3591 11.3162 26.4069 11.0466 26.3997ZM7.04857 20.9907L11.0466 24.9887L18.1019 17.9334L14.1039 13.9511L7.04857 20.9907ZM15.2641 12.7908L19.2464 16.7732L26.2704 9.74923L22.288 5.7669L15.2641 12.7908Z",fill:"currentColor"}),(0,h.jsx)("path",{d:"M15.9785 17.9355L11.0466 22.8674L9.17107 20.9919L14.1048 16.0691L15.9785 17.9355ZM23.6736 3.04735C23.2367 2.85738 22.7651 2.76015 22.2887 2.76175C21.8115 2.75969 21.339 2.85593 20.9006 3.04451C20.468 3.23057 20.0778 3.50255 19.7537 3.84385L5.22113 18.3764C4.88174 18.6971 4.61069 19.0832 4.42443 19.5116C4.2347 19.948 4.13703 20.4188 4.13751 20.8946C4.13565 21.3984 4.23951 21.897 4.44243 22.3581C4.50154 22.4925 4.56867 22.6228 4.64335 22.7484L2.29258 25.0991L3.34995 26.1565L2.29257 25.0991C1.2591 26.1326 1.99102 27.8997 3.45263 27.8997H8.16174H8.72361L9.14721 27.5306L9.27257 27.4214C9.39694 27.4944 9.52602 27.5598 9.6591 27.617C10.0929 27.8036 10.5602 27.8998 11.0323 27.8998C11.4965 27.9087 11.958 27.8249 12.3897 27.6531C12.8292 27.4783 13.2285 27.216 13.5635 26.8821L13.5653 26.8803L28.1167 12.329C28.4548 12.0061 28.7247 11.6185 28.9103 11.1892C29.0993 10.7519 29.1968 10.2805 29.1968 9.8041C29.1968 9.3277 29.0993 8.85635 28.9103 8.41905C28.7268 7.99456 28.4609 7.61087 28.1281 7.29017L24.8206 3.8585C24.4981 3.51223 24.1077 3.23608 23.6736 3.04735L23.0755 4.42296L23.6736 3.04735ZM22.288 7.88822L24.149 9.74923L19.2464 14.6519L17.3854 12.7908L22.288 7.88822Z",className:"invertedStroke",strokeWidth:"3"})]})}),(0,h.jsxs)("defs",{children:[(0,h.jsxs)("filter",{id:"filter0_dd_1383_26",x:"-1.06201",y:"-0.10607",width:"33.1266",height:"32.2421",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,h.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,h.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,h.jsx)("feOffset",{}),(0,h.jsx)("feGaussianBlur",{stdDeviation:"0.683895"}),(0,h.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,h.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0588235 0 0 0 0 0.0588235 0 0 0 0 0.0941176 0 0 0 0.12 0"}),(0,h.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_1383_26"}),(0,h.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,h.jsx)("feOffset",{dy:"1.36779"}),(0,h.jsx)("feGaussianBlur",{stdDeviation:"0.683895"}),(0,h.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,h.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.054902 0 0 0 0 0.054902 0 0 0 0 0.203922 0 0 0 0.16 0"}),(0,h.jsx)("feBlend",{mode:"normal",in2:"effect1_dropShadow_1383_26",result:"effect2_dropShadow_1383_26"}),(0,h.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect2_dropShadow_1383_26",result:"shape"})]}),(0,h.jsx)("clipPath",{id:"clip0_1383_26",children:(0,h.jsx)("rect",{width:"32",height:"32",fill:"white"})})]})]})),CU=e=>(0,h.jsxs)(xk,Object.assign({viewBox:"0 0 32 32"},e,{children:[(0,h.jsxs)("g",{filter:"url(#filter0_dd_92_29)",children:[(0,h.jsx)("path",{d:"M11 21H21V11H11V21ZM29 23C29 26.3137 26.3137 29 23 29H9C5.68629 29 3 26.3137 3 23V9C3 5.68629 5.68629 3 9 3H23C26.3137 3 29 5.68629 29 9V23Z",className:"invertedFill"}),(0,h.jsx)("path",{d:"M24.25 9C24.25 8.30964 23.6904 7.75 23 7.75H9C8.30964 7.75 7.75 8.30964 7.75 9V23C7.75 23.6904 8.30964 24.25 9 24.25H23C23.6904 24.25 24.25 23.6904 24.25 23V9ZM25.75 23C25.75 24.5188 24.5188 25.75 23 25.75H9C7.48122 25.75 6.25 24.5188 6.25 23V9C6.25 7.48122 7.48122 6.25 9 6.25H23C24.5188 6.25 25.75 7.48122 25.75 9V23Z",fill:"currentColor"})]}),(0,h.jsx)("defs",{children:(0,h.jsxs)("filter",{id:"filter0_dd_92_29",x:"-1.17176",y:"-1.17176",width:"34.3435",height:"35.5153",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,h.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,h.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,h.jsx)("feOffset",{}),(0,h.jsx)("feGaussianBlur",{stdDeviation:"0.58588"}),(0,h.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,h.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0588235 0 0 0 0 0.0588235 0 0 0 0 0.0941176 0 0 0 0.12 0"}),(0,h.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_92_29"}),(0,h.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,h.jsx)("feOffset",{dy:"1.17176"}),(0,h.jsx)("feGaussianBlur",{stdDeviation:"0.58588"}),(0,h.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,h.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.054902 0 0 0 0 0.054902 0 0 0 0 0.203922 0 0 0 0.16 0"}),(0,h.jsx)("feBlend",{mode:"normal",in2:"effect1_dropShadow_92_29",result:"effect2_dropShadow_92_29"}),(0,h.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect2_dropShadow_92_29",result:"shape"})]})})]})),CW=e=>(0,h.jsxs)(xk,Object.assign({viewBox:"0 0 32 33"},e,{children:[(0,h.jsx)("g",{filter:"url(#filter0_dd_1374_10)",children:(0,h.jsx)("path",{d:"M20.7271 2C21.4372 2 21.7114 2.00463 22.0841 2.03504C22.8228 2.0954 23.4839 2.25122 24.1592 2.59527C25.1865 3.1188 26.0219 3.9541 26.5458 4.98208C26.8896 5.65706 27.0454 6.31812 27.1057 7.05672C27.1301 7.35469 27.1379 7.58979 27.14 8.03558L27.1408 9.10155C27.1408 11.2114 25.4304 12.922 23.3205 12.922C21.4083 12.922 19.8243 11.5172 19.5441 9.68336L19.538 9.64H18.39V21.687L20.0392 21.6877C22.149 21.6877 23.8595 23.398 23.8595 25.508C23.8595 27.6178 22.149 29.3283 20.0392 29.3283H9.10159C6.99169 29.3283 5.28127 27.6178 5.28127 25.508C5.28127 23.398 6.99172 21.6877 9.10159 21.6877L10.75 21.687V9.64H9.601L9.59661 9.68334C9.32609 11.4539 7.84018 12.8246 6.01692 12.917L5.82032 12.922C3.71035 12.922 2 11.2114 2 9.10155V8.41371C2 7.70349 2.00463 7.42929 2.03504 7.05674C2.09538 6.31803 2.25122 5.65681 2.59521 4.98173C3.11877 3.95419 3.95418 3.11876 4.98174 2.5952C5.65683 2.25122 6.31798 2.09539 7.057 2.03501C7.42935 2.00463 7.70354 2 8.41371 2H20.7271Z",className:"invertedFill"})}),(0,h.jsx)("path",{d:"M8.41371 5H20.7271C21.1595 5 21.5325 5 21.8398 5.02507C22.1641 5.05157 22.4867 5.11007 22.7971 5.26822C23.2601 5.50416 23.6366 5.88064 23.8726 6.3437C24.0307 6.65409 24.0892 6.97666 24.1157 7.30097C24.1408 7.60823 24.1408 7.98127 24.1408 8.41369V9.10155C24.1408 9.55465 23.7735 9.92195 23.3205 9.92195C22.8674 9.92195 22.5001 9.55465 22.5001 9.10155V8.44533C22.5001 7.97237 22.4995 7.66699 22.4805 7.43457C22.4623 7.21172 22.4314 7.12909 22.4107 7.08853C22.3321 6.93418 22.2066 6.80869 22.0522 6.73004C22.0117 6.70938 21.9291 6.67847 21.7062 6.66026C21.4738 6.64127 21.1684 6.64063 20.6954 6.64063H15.3907V24.6877H20.0392C20.4922 24.6877 20.8595 25.0549 20.8595 25.508C20.8595 25.961 20.4922 26.3283 20.0392 26.3283H9.10159C8.64854 26.3283 8.28127 25.961 8.28127 25.508C8.28127 25.0549 8.64854 24.6877 9.10159 24.6877H13.7501V6.64063H8.44533C7.97238 6.64063 7.66699 6.64127 7.43457 6.66026C7.21172 6.67847 7.1291 6.70938 7.08854 6.73004C6.93418 6.80869 6.80869 6.93418 6.73004 7.08853C6.70938 7.12909 6.67847 7.21172 6.66026 7.43457C6.64127 7.66699 6.64063 7.97237 6.64063 8.44533V9.10155C6.64063 9.55465 6.27337 9.92195 5.82032 9.92195C5.36727 9.92195 5 9.55465 5 9.10155V8.41371C5 7.98128 5 7.60823 5.02508 7.30097C5.05157 6.97666 5.11007 6.65409 5.26823 6.3437C5.50417 5.88064 5.88064 5.50416 6.3437 5.26822C6.65409 5.11007 6.97666 5.05157 7.30097 5.02507C7.60824 5 7.98129 5 8.41371 5Z",fill:"currentColor"}),(0,h.jsx)("defs",{children:(0,h.jsxs)("filter",{id:"filter0_dd_1374_10",x:"0.85",y:"0.85",width:"27.4408",height:"30.7783",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,h.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,h.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,h.jsx)("feOffset",{}),(0,h.jsx)("feGaussianBlur",{stdDeviation:"0.575"}),(0,h.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,h.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0588235 0 0 0 0 0.0588235 0 0 0 0 0.0941176 0 0 0 0.12 0"}),(0,h.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_1374_10"}),(0,h.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,h.jsx)("feOffset",{dy:"1.15"}),(0,h.jsx)("feGaussianBlur",{stdDeviation:"0.575"}),(0,h.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,h.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.054902 0 0 0 0 0.054902 0 0 0 0 0.203922 0 0 0 0.16 0"}),(0,h.jsx)("feBlend",{mode:"normal",in2:"effect1_dropShadow_1374_10",result:"effect2_dropShadow_1374_10"}),(0,h.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect2_dropShadow_1374_10",result:"shape"})]})})]})),CN="3.3em",CK=p.I4.button(nC(),CN,CN,uv("annotationMenuTriggerIconColor"),e=>{let{$plusStrokeColor:t}=e;return t||uv("grey100")},uv("grey100"),e=>{let{$isOpen:t,$isHovered:n,$isSticky:r}=e;return"scale(".concat(t?"100%":n||r?"75%":"50%",")")}),CZ=p.I4.div(nv(),e=>{let{$isOpen:t}=e;return t?"rotate(45deg)":"rotate(0deg)"}),CX=(0,M.forwardRef)((e,t)=>{let{isOpen:n,plusStrokeColor:r,isSticky:i,isHovered:o}=e,{canUserInteractWithAddon:l}=xp();return l("annotationMenuAddon")?(0,h.jsx)(em.l9,{asChild:!0,children:(0,h.jsx)(CK,{ref:t,$isOpen:n,$plusStrokeColor:r,$isSticky:i,$isHovered:o,children:(0,h.jsx)(CZ,{$isOpen:n,children:(0,h.jsx)(x$,{size:"lg"})})})}):null});CX.displayName="AnnotationsMenuTrigger";let C_=()=>{let{hitboxes:e}=yk();return(0,M.useMemo)(()=>e.flatMap(e=>e.dataPoints.filter(e=>yS(e)||yP(e))),[e])},CQ=e=>e.map(yC).join(CJ),CJ="#separator#",Cq=p.I4.div(nj()),C$=(0,p.I4)(em.q7)(nA(),h_(1),h_(.5),sz.md,uv("grey80"),uv("grey80")),C1=p.I4.div(nw()),C0=p.I4.span(nk(),m1),C2=p.I4.div(nP()),C5=p.I4.div(nS(),uv("alert")),C3=()=>(0,h.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,h.jsx)("path",{opacity:"0.12",d:"M13.5948 4.29016C13.8724 6.22367 12.5301 8.01618 10.5966 8.29384C8.66309 8.57151 6.87058 7.22918 6.59292 5.29567C6.31525 3.36216 7.65758 1.56965 9.59109 1.29198C11.5246 1.01432 13.3171 2.35665 13.5948 4.29016Z",fill:"currentColor",fillOpacity:"0.8"}),(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.71886 3.51052C6.25611 1.3626 8.43287 0.0568985 10.5808 0.594151C12.7287 1.1314 14.0344 3.30817 13.4972 5.45609C13.0316 7.31748 11.3347 8.54637 9.49237 8.49145L7.50898 12.492C7.46485 12.581 7.40179 12.6548 7.32702 12.7108C7.20005 12.8073 7.03703 12.8532 6.87248 12.8303C6.80957 12.822 6.74697 12.8038 6.68687 12.7749C6.39369 12.6342 6.26689 12.2915 6.3923 11.9963L7.63393 7.97371C6.10249 7.10872 5.27136 5.29962 5.71886 3.51052ZM10.2785 1.80253C8.79799 1.4322 7.29756 2.33222 6.92723 3.81277C6.55691 5.29332 7.45692 6.79375 8.93747 7.16408C10.418 7.5344 11.9185 6.63439 12.2888 5.15384C12.6591 3.67329 11.7591 2.17285 10.2785 1.80253Z",fill:"currentColor",fillOpacity:"0.8"}),(0,h.jsx)("path",{d:"M5.42977 11.1572C5.70072 11.104 5.8772 10.8411 5.82393 10.5702C5.77067 10.2992 5.50784 10.1227 5.23688 10.176C4.31848 10.3565 3.57421 10.6423 3.04695 11.0266C2.51409 11.4149 2.16666 11.936 2.16666 12.557C2.16666 13.0322 2.41215 13.4327 2.74425 13.7433C3.07553 14.0531 3.52776 14.3091 4.04484 14.5137C5.08193 14.9239 6.48048 15.1666 7.99999 15.1666C9.5195 15.1666 10.9181 14.9239 11.9551 14.5137C12.4722 14.3091 12.9244 14.0531 13.2557 13.7433C13.5878 13.4327 13.8333 13.0322 13.8333 12.557C13.8333 11.936 13.4859 11.4149 12.953 11.0266C12.4258 10.6423 11.6815 10.3565 10.7631 10.176C10.4921 10.1227 10.2293 10.2992 10.176 10.5702C10.1228 10.8411 10.2993 11.104 10.5702 11.1572C11.4079 11.3219 11.997 11.5672 12.364 11.8347C12.7255 12.0981 12.8333 12.3496 12.8333 12.557C12.8333 12.6643 12.7803 12.8187 12.5727 13.013C12.3642 13.2079 12.0354 13.4065 11.5873 13.5838C10.6941 13.9371 9.426 14.1666 7.99999 14.1666C6.57398 14.1666 5.30586 13.9371 4.41267 13.5838C3.9646 13.4065 3.63578 13.2079 3.4273 13.013C3.21964 12.8187 3.16666 12.6643 3.16666 12.557C3.16666 12.3496 3.2745 12.0981 3.63595 11.8347C4.00299 11.5672 4.59206 11.3219 5.42977 11.1572Z",fill:"currentColor",fillOpacity:"0.8"})]}),C7=()=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",children:[(0,h.jsx)("path",{fill:"currentColor",fillOpacity:".8",d:"M2.333 3h11.334v8.667c-2 0-4 .333-5.667 2.333-2-2-3.667-2.333-5.667-2.333z",opacity:".12"}),(0,h.jsx)("path",{fill:"currentColor",fillOpacity:".8",fillRule:"evenodd",d:"M3.325 3.156a.836.836 0 0 0-.836.836v6.832c0 .462.375.836.836.836h2.131a.5.5 0 0 1 .352.145L8 13.975l2.193-2.17a.5.5 0 0 1 .352-.145h2.13a.84.84 0 0 0 .836-.836V3.992a.84.84 0 0 0-.836-.836zm-1.836.836c0-1.014.822-1.836 1.836-1.836h9.35c1.015 0 1.836.825 1.836 1.836v6.832a1.84 1.84 0 0 1-1.836 1.836H10.75l-2.398 2.374a.5.5 0 0 1-.704 0L5.25 12.66H3.325a1.836 1.836 0 0 1-1.836-1.836z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"currentColor",fillOpacity:".8",fillRule:"evenodd",d:"M8 4.505a.5.5 0 0 1 .5.5v2.172h2.171a.5.5 0 0 1 0 1H8.5v2.171a.5.5 0 0 1-1 0V8.177H5.329a.5.5 0 0 1 0-1H7.5V5.005a.5.5 0 0 1 .5-.5",clipRule:"evenodd"})]}),C9=()=>(0,h.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,h.jsx)("path",{opacity:"0.12",d:"M15 4.66667L12.3333 2L2.33334 12L5.00001 14.6667L15 4.66667Z",fill:"currentColor",fillOpacity:"0.8"}),(0,h.jsx)("path",{d:"M5.01683 15.3331C4.84407 15.3343 4.67292 15.2997 4.51421 15.2314C4.3555 15.1632 4.21268 15.0627 4.09476 14.9365L3.88656 14.7283L3.62877 14.8968L3.19253 15.3331H0L2.24072 13.0923L2.03251 12.8445C1.89423 12.7191 1.78392 12.566 1.70875 12.3952C1.63359 12.2244 1.59526 12.0396 1.59626 11.853C1.59579 11.6818 1.63078 11.5124 1.69904 11.3554C1.76729 11.1984 1.86733 11.0573 1.99285 10.9409L11.2036 1.73012C11.3215 1.60384 11.4643 1.5034 11.623 1.43514C11.7817 1.36688 11.9529 1.33228 12.1257 1.33353C12.2969 1.33245 12.4665 1.36716 12.6236 1.43546C12.7807 1.50375 12.9218 1.60412 13.0378 1.73012L15.1496 3.92126C15.2748 4.03899 15.3745 4.1811 15.4427 4.33882C15.5108 4.49654 15.546 4.66655 15.546 4.83837C15.546 5.01019 15.5108 5.1802 15.4427 5.33792C15.3745 5.49564 15.2748 5.63774 15.1496 5.75548L5.93889 14.9662C5.81806 15.0866 5.67403 15.1812 5.51552 15.2443C5.35702 15.3074 5.18736 15.3376 5.01683 15.3331ZM2.48858 11.9125L5.01683 14.4407L9.47843 9.97913L6.95019 7.4608L2.48858 11.9125ZM7.68388 6.72712L10.2022 9.24544L14.644 4.80367L12.1257 2.28534L7.68388 6.72712Z",fill:"currentColor",fillOpacity:"0.8"})]}),C4=()=>(0,h.jsxs)(C2,{role:"img",children:[(0,h.jsx)(C9,{}),(0,h.jsx)(C5,{})]}),C6=()=>(0,h.jsx)("svg",{width:"15",height:"14",viewBox:"0 0 15 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,h.jsx)("path",{d:"M14.0146 5.20703C14.2118 5.40459 14.2121 5.72447 14.0146 5.92187L12.3291 7.6084C12.2343 7.70313 12.1047 7.75579 11.9707 7.75586C11.8369 7.75573 11.708 7.70291 11.6133 7.6084L9.92773 5.92187C9.73024 5.72438 9.73031 5.40457 9.92773 5.20703C10.1253 5.0095 10.445 5.0095 10.6426 5.20703L11.4658 6.03027L11.4658 1.68652L7.75586 1.68652L7.75586 12.6455C7.75563 12.9246 7.5291 13.1512 7.25 13.1514L2.5293 13.1514C2.2501 13.1514 2.02367 12.9247 2.02344 12.6455L2.02344 5.00781C0.868958 4.77348 0.000106647 3.7528 -1.10559e-07 2.5293C-4.95071e-08 1.13259 1.13261 9.74645e-05 2.5293 -5.23256e-07C3.92588 0.000220668 5.05859 1.13267 5.05859 2.5293C5.05849 3.75251 4.1892 4.77219 3.03516 5.00684L3.03516 12.1396L6.74414 12.1396L6.74414 1.18066C6.74414 0.901394 6.97076 0.674939 7.25 0.674804L11.9707 0.674805C12.2499 0.674939 12.4766 0.901394 12.4766 1.18066L12.4766 6.03027L13.2998 5.20703C13.4973 5.0095 13.8171 5.0095 14.0146 5.20703ZM4.04687 2.5293C4.04687 1.69137 3.36717 1.01194 2.5293 1.01172C1.69132 1.01182 1.01172 1.6913 1.01172 2.5293C1.01184 3.36719 1.6914 4.04678 2.5293 4.04687C3.36709 4.04665 4.04675 3.36712 4.04687 2.5293ZM14.5 11.2969C14.4998 12.6935 13.3673 13.8262 11.9707 13.8262C10.5742 13.826 9.4416 12.6934 9.44141 11.2969C9.44141 9.90018 10.574 8.7677 11.9707 8.76758C13.3675 8.76758 14.5 9.90011 14.5 11.2969ZM13.4883 11.2969C13.4883 10.4588 12.8088 9.7793 11.9707 9.7793C11.1327 9.77942 10.4531 10.4589 10.4531 11.2969C10.4533 12.1347 11.1329 12.8143 11.9707 12.8145C12.8086 12.8145 13.4881 12.1348 13.4883 11.2969Z",fill:"currentColor",fillOpacity:"0.8"})}),C8=()=>(0,h.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,h.jsx)("path",{opacity:"0.12",d:"M1.33334 8.00016C1.33334 4.31826 4.31811 1.3335 8.00001 1.3335C11.6819 1.3335 14.6667 4.31826 14.6667 8.00016C14.6667 11.6821 11.6819 14.6668 8.00001 14.6668C4.31811 14.6668 1.33334 11.6821 1.33334 8.00016Z",fill:"currentColor",fillOpacity:"0.8"}),(0,h.jsx)("path",{d:"M5.7328 9.69963C5.56696 9.47884 5.25352 9.43429 5.03273 9.60013C4.81193 9.76598 4.76739 10.0794 4.93323 10.3002C5.63175 11.2302 6.74548 11.8333 7.99993 11.8333C9.25438 11.8333 10.3681 11.2302 11.0666 10.3002C11.2325 10.0794 11.1879 9.76598 10.9671 9.60013C10.7463 9.43429 10.4329 9.47884 10.2671 9.69963C9.74929 10.3889 8.92657 10.8333 7.99993 10.8333C7.07329 10.8333 6.25057 10.3889 5.7328 9.69963Z",fill:"currentColor",fillOpacity:"0.8"}),(0,h.jsx)("path",{d:"M6.66668 6.66658C6.66668 7.03478 6.3682 7.33325 6.00001 7.33325C5.63182 7.33325 5.33334 7.03478 5.33334 6.66658C5.33334 6.29839 5.63182 5.99992 6.00001 5.99992C6.3682 5.99992 6.66668 6.29839 6.66668 6.66658Z",fill:"currentColor",fillOpacity:"0.8"}),(0,h.jsx)("path",{d:"M10 7.33325C10.3682 7.33325 10.6667 7.03478 10.6667 6.66658C10.6667 6.29839 10.3682 5.99992 10 5.99992C9.63182 5.99992 9.33334 6.29839 9.33334 6.66658C9.33334 7.03478 9.63182 7.33325 10 7.33325Z",fill:"currentColor",fillOpacity:"0.8"}),(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.00001 0.833252C4.04197 0.833252 0.833344 4.04188 0.833344 7.99992C0.833344 11.958 4.04197 15.1666 8.00001 15.1666C11.9581 15.1666 15.1667 11.958 15.1667 7.99992C15.1667 4.04188 11.9581 0.833252 8.00001 0.833252ZM14.1667 7.99992C14.1667 11.4057 11.4058 14.1666 8.00001 14.1666C4.59425 14.1666 1.83334 11.4057 1.83334 7.99992C1.83334 4.59416 4.59425 1.83325 8.00001 1.83325C11.4058 1.83325 14.1667 4.59416 14.1667 7.99992Z",fill:"currentColor",fillOpacity:"0.8"})]}),ve=()=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",children:[(0,h.jsx)("rect",{width:"3.2",height:"7.704",y:"8.296",fill:"currentColor",fillOpacity:"0.3",rx:".533"}),(0,h.jsx)("rect",{width:"3.2",height:"4.741",x:"8.533",y:"11.259",fill:"currentColor",fillOpacity:"0.3",rx:".533"}),(0,h.jsx)("rect",{width:"3.2",height:"11.259",x:"4.267",y:"4.741",fill:"currentColor",fillOpacity:"0.8",rx:".533"}),(0,h.jsx)("rect",{width:"3.2",height:"16",x:"12.8",fill:"currentColor",fillOpacity:"0.3",rx:".533"})]}),vt=()=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",children:[(0,h.jsx)("rect",{width:"3.2",height:"7.704",y:"8.296",fill:"currentColor",fillOpacity:"0.3",rx:".533"}),(0,h.jsx)("rect",{width:"3.2",height:"4.741",x:"8.533",y:"11.259",fill:"currentColor",fillOpacity:"0.3",rx:".533"}),(0,h.jsx)("rect",{width:"3.2",height:"11.259",x:"4.267",y:"4.741",fill:"currentColor",fillOpacity:"0.8",rx:".533"}),(0,h.jsx)("rect",{width:"3.2",height:"16",x:"12.8",fill:"currentColor",fillOpacity:".8",rx:".533"})]}),vn=()=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",children:[(0,h.jsx)("rect",{width:"3.2",height:"7.704",y:"8.296",fill:"currentColor",fillOpacity:"0.8",rx:".533"}),(0,h.jsx)("rect",{width:"3.2",height:"4.741",x:"8.533",y:"11.259",fill:"currentColor",fillOpacity:"0.3",rx:".533"}),(0,h.jsx)("rect",{width:"3.2",height:"11.259",x:"4.267",y:"4.741",fill:"currentColor",fillOpacity:"0.8",rx:".533"}),(0,h.jsx)("rect",{width:"3.2",height:"16",x:"12.8",fill:"currentColor",fillOpacity:"0.3",rx:".533"})]}),vr=()=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",children:[(0,h.jsx)("path",{fill:"currentColor",fillOpacity:"0.3",d:"M0 13.037h4.267v2.445a.52.52 0 0 1-.519.518H.518A.52.52 0 0 1 0 15.482zM0 7.037c0-.286.232-.518.519-.518h3.23c.286 0 .518.232.518.518v5.408H0z"}),(0,h.jsx)("path",{fill:"currentColor",fillOpacity:".8",d:"M5.867 7.704h4.266v7.778a.52.52 0 0 1-.518.518h-3.23a.52.52 0 0 1-.518-.518z"}),(0,h.jsx)("path",{fill:"currentColor",fillOpacity:"0.3",d:"M5.867 7.111h4.266V4.074a.52.52 0 0 0-.518-.518h-3.23a.52.52 0 0 0-.518.518zM11.733 10.074H16v5.408a.52.52 0 0 1-.518.518h-3.23a.52.52 0 0 1-.519-.518zM11.733 9.481H16V.52A.52.52 0 0 0 15.482 0h-3.23a.52.52 0 0 0-.519.519z"})]}),vi=()=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",children:[(0,h.jsx)("path",{fill:"currentColor",fillOpacity:".8",d:"M0 13.037h4.267v2.445a.52.52 0 0 1-.519.518H.518A.52.52 0 0 1 0 15.482z"}),(0,h.jsx)("path",{fill:"currentColor",fillOpacity:"0.3",d:"M0 7.037c0-.286.232-.518.519-.518h3.23c.286 0 .518.232.518.518v5.408H0z"}),(0,h.jsx)("path",{fill:"currentColor",fillOpacity:".8",d:"M5.867 7.704h4.266v7.778a.52.52 0 0 1-.518.518h-3.23a.52.52 0 0 1-.518-.518z"}),(0,h.jsx)("path",{fill:"currentColor",fillOpacity:"0.3",d:"M5.867 7.111h4.266V4.074a.52.52 0 0 0-.518-.518h-3.23a.52.52 0 0 0-.518.518z"}),(0,h.jsx)("path",{fill:"currentColor",fillOpacity:".8",d:"M11.733 10.074H16v5.408a.52.52 0 0 1-.518.518h-3.23a.52.52 0 0 1-.519-.518z"}),(0,h.jsx)("path",{fill:"currentColor",fillOpacity:"0.3",d:"M11.733 9.481H16V.52A.52.52 0 0 0 15.482 0h-3.23a.52.52 0 0 0-.519.519z"})]}),vo=()=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",children:[(0,h.jsx)("path",{fill:"currentColor",fillOpacity:"0.3",d:"M0 13.037h4.267v2.445a.52.52 0 0 1-.519.518H.518A.52.52 0 0 1 0 15.482zM0 7.037c0-.286.232-.518.519-.518h3.23c.286 0 .518.232.518.518v5.408H0z"}),(0,h.jsx)("path",{fill:"currentColor",fillOpacity:".8",d:"M5.867 7.704h4.266v7.778a.52.52 0 0 1-.518.518h-3.23a.52.52 0 0 1-.518-.518zM5.867 7.111h4.266V4.074a.52.52 0 0 0-.518-.518h-3.23a.52.52 0 0 0-.518.518z"}),(0,h.jsx)("path",{fill:"currentColor",fillOpacity:"0.3",d:"M11.733 10.074H16v5.408a.52.52 0 0 1-.518.518h-3.23a.52.52 0 0 1-.519-.518zM11.733 9.481H16V.52A.52.52 0 0 0 15.482 0h-3.23a.52.52 0 0 0-.519.519z"})]}),vl=()=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",children:[(0,h.jsx)("rect",{width:"3",height:"8",x:"8",fill:"currentColor",fillOpacity:"0.3",rx:".533",transform:"rotate(90 8 0)"}),(0,h.jsx)("rect",{width:"3",height:"5",x:"5",y:"9",fill:"currentColor",fillOpacity:"0.3",rx:".533",transform:"rotate(90 5 9)"}),(0,h.jsx)("rect",{width:"3",height:"12",x:"12",y:"4",fill:"currentColor",rx:".533",transform:"rotate(90 12 4)"}),(0,h.jsx)("rect",{width:"3",height:"16",x:"16",y:"13",fill:"currentColor",fillOpacity:"0.3",rx:".533",transform:"rotate(90 16 13)"})]}),va=()=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",children:[(0,h.jsx)("rect",{width:"3",height:"8",x:"8",fill:"currentColor",fillOpacity:"0.3",rx:".533",transform:"rotate(90 8 0)"}),(0,h.jsx)("rect",{width:"3",height:"5",x:"5",y:"9",fill:"currentColor",fillOpacity:"0.3",rx:".533",transform:"rotate(90 5 9)"}),(0,h.jsx)("rect",{width:"3",height:"12",x:"12",y:"4",fill:"currentColor",rx:".533",transform:"rotate(90 12 4)"}),(0,h.jsx)("rect",{width:"3",height:"16",x:"16",y:"13",fill:"currentColor",fillOpacity:".8",rx:".533",transform:"rotate(90 16 13)"})]}),vs=()=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",children:[(0,h.jsx)("rect",{width:"3",height:"8",x:"8",fill:"currentColor",fillOpacity:".8",rx:".533",transform:"rotate(90 8 0)"}),(0,h.jsx)("rect",{width:"3",height:"5",x:"5",y:"9",fill:"currentColor",fillOpacity:"0.3",rx:".533",transform:"rotate(90 5 9)"}),(0,h.jsx)("rect",{width:"3",height:"12",x:"12",y:"4",fill:"currentColor",rx:".533",transform:"rotate(90 12 4)"}),(0,h.jsx)("rect",{width:"3",height:"16",x:"16",y:"13",fill:"currentColor",fillOpacity:"0.3",rx:".533",transform:"rotate(90 16 13)"})]}),vu=()=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",children:[(0,h.jsx)("path",{fill:"currentColor",fillOpacity:"0.3",d:"M2.963 0v4.267H.518A.52.52 0 0 1 0 3.748V.518C0 .233.232 0 .518 0zM8.963 0c.286 0 .518.232.518.519v3.23a.52.52 0 0 1-.518.518H3.556V0z"}),(0,h.jsx)("path",{fill:"currentColor",fillOpacity:".8",d:"M8.296 5.867v4.266H.518A.52.52 0 0 1 0 9.615v-3.23c0-.286.232-.518.518-.518z"}),(0,h.jsx)("path",{fill:"currentColor",fillOpacity:"0.3",d:"M8.889 5.867v4.266h3.037a.52.52 0 0 0 .518-.518v-3.23a.52.52 0 0 0-.518-.518zM5.926 11.733V16H.519A.52.52 0 0 1 0 15.482v-3.23c0-.287.232-.519.519-.519zM6.519 11.733V16h8.962a.52.52 0 0 0 .519-.518v-3.23a.52.52 0 0 0-.519-.519z"})]}),vc=()=>(0,h.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,h.jsx)("path",{d:"M2.96289 6.99382e-07L2.96289 4.26667L0.518483 4.26667C0.232113 4.26667 -3.52239e-05 4.03452 -3.52114e-05 3.74815L-3.50702e-05 0.518519C-3.50577e-05 0.23215 0.232114 5.80016e-07 0.518483 5.92534e-07L2.96289 6.99382e-07Z",fill:"black",fillOpacity:"0.8"}),(0,h.jsx)("path",{d:"M8.96293 6.76717e-07C9.2493 6.89235e-07 9.48145 0.232149 9.48145 0.518519L9.48145 3.74815C9.48145 4.03452 9.2493 4.26667 8.96293 4.26667L3.55559 4.26667L3.55559 4.40355e-07L8.96293 6.76717e-07Z",fill:"currentColor",fillOpacity:"0.3"}),(0,h.jsx)("path",{d:"M8.29614 5.8667L8.29614 10.1334L0.518469 10.1334C0.232099 10.1334 -4.88137e-05 9.90122 -4.88012e-05 9.61485L-4.86601e-05 6.38522C-4.86475e-05 6.09885 0.2321 5.8667 0.51847 5.8667L8.29614 5.8667Z",fill:"black",fillOpacity:"0.8"}),(0,h.jsx)("path",{d:"M8.88892 5.8667L8.88892 10.1334L11.9259 10.1334C12.2123 10.1334 12.4444 9.90122 12.4444 9.61485L12.4444 6.38522C12.4444 6.09885 12.2123 5.8667 11.9259 5.8667L8.88892 5.8667Z",fill:"currentColor",fillOpacity:"0.3"}),(0,h.jsx)("path",{d:"M5.92603 11.7334L5.92603 16.0001L0.518692 16.0001C0.232322 16.0001 0.000173869 15.7679 0.000173882 15.4815L0.000174023 12.2519C0.000174035 11.9655 0.232323 11.7334 0.518692 11.7334L5.92603 11.7334Z",fill:"black",fillOpacity:"0.8"}),(0,h.jsx)("path",{d:"M6.51855 11.7334L6.51855 16.0001L15.4814 16.0001C15.7678 16.0001 15.9999 15.7679 15.9999 15.4815L15.9999 12.2519C15.9999 11.9655 15.7678 11.7334 15.4814 11.7334L6.51855 11.7334Z",fill:"currentColor",fillOpacity:"0.3"})]}),vd=()=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",children:[(0,h.jsx)("path",{fill:"currentColor",fillOpacity:"0.3",d:"M2.963 0v4.267H.518A.52.52 0 0 1 0 3.748V.518C0 .233.232 0 .518 0zM8.963 0c.286 0 .518.232.518.519v3.23a.52.52 0 0 1-.518.518H3.556V0z"}),(0,h.jsx)("path",{fill:"currentColor",fillOpacity:".8",d:"M8.296 5.867v4.266H.518A.52.52 0 0 1 0 9.615v-3.23c0-.286.232-.518.518-.518zM8.889 5.867v4.266h3.037a.52.52 0 0 0 .518-.518v-3.23a.52.52 0 0 0-.518-.518z"}),(0,h.jsx)("path",{fill:"currentColor",fillOpacity:"0.3",d:"M5.926 11.733V16H.519A.52.52 0 0 1 0 15.482v-3.23c0-.287.232-.519.519-.519zM6.519 11.733V16h8.962a.52.52 0 0 0 .519-.518v-3.23a.52.52 0 0 0-.519-.519z"})]}),vp=()=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",children:[(0,h.jsx)("rect",{width:"16",height:"16",fill:"currentColor",fillOpacity:"0.3",rx:"8"}),(0,h.jsx)("path",{fill:"currentColor",fillOpacity:"0.8",d:"m7.999 16 .412-.01A8 8 0 0 0 8 0z"}),(0,h.jsx)("path",{fill:"currentColor",fillOpacity:"0.6",d:"M15.999 8a8 8 0 0 1-7.588 7.989l-.412.01V8z"})]}),vh=()=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",children:[(0,h.jsx)("path",{fill:"currentColor",fillOpacity:"0.3",d:"M8 0a8 8 0 1 1-.001 16A8 8 0 0 1 8 0m.111 3.916a4.195 4.195 0 1 0 0 8.39 4.195 4.195 0 0 0 0-8.39"}),(0,h.jsx)("path",{fill:"currentColor",fillOpacity:"0.8",d:"M8 0a8 8 0 0 1 .411 15.99L8 15.998v-3.695c.038 0 .075.004.113.004a4.196 4.196 0 1 0-.113-8.39z"}),(0,h.jsx)("path",{fill:"currentColor",fillOpacity:"0.1",d:"M16 8a8 8 0 0 1-7.589 7.99L8 15.998v-3.695c.038 0 .075.004.113.004a4.196 4.196 0 0 0 4.195-4.197L12.304 8z"})]}),vg=()=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"16",fill:"none",viewBox:"0 0 20 16",children:[(0,h.jsx)("path",{stroke:"currentColor",strokeOpacity:"0.8",strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:".993",d:"M1.5 12 6 6.5l4 3.5 4-5.5"}),(0,h.jsx)("circle",{cx:"1.493",cy:"11.993",r:".993",fill:"currentColor",fillOpacity:"0.8"}),(0,h.jsx)("circle",{cx:"5.993",cy:"6.493",r:".993",fill:"currentColor",fillOpacity:"0.8"}),(0,h.jsx)("circle",{cx:"9.993",cy:"9.993",r:".993",fill:"currentColor",fillOpacity:"0.8"}),(0,h.jsx)("circle",{cx:"13.993",cy:"4.493",r:".993",fill:"currentColor",fillOpacity:"0.8"})]}),vf=()=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",children:[(0,h.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeOpacity:".8",strokeWidth:"1.163",d:"m-1.618 15.96 9.118-5.3 11 2.34"}),(0,h.jsx)("path",{fill:"currentColor",fillOpacity:"0.6",stroke:"currentColor",strokeOpacity:"0.3",d:"M8 13a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"}),(0,h.jsx)("rect",{width:"9.795",height:"6",x:"3",y:"2",fill:"currentColor",fillOpacity:"0.3",rx:"1.513"}),(0,h.jsx)("path",{fill:"currentColor",fillOpacity:".8",d:"M5.29 6.62a1.3 1.3 0 0 1-.424-.075 1 1 0 0 1-.373-.244 1.2 1.2 0 0 1-.262-.45 2.1 2.1 0 0 1-.096-.699q0-.389.082-.693.083-.304.238-.514a1.05 1.05 0 0 1 .374-.322q.22-.11.492-.11.285 0 .505.112a.973.973 0 0 1 .526.744h-.54a.5.5 0 0 0-.17-.277.5.5 0 0 0-.321-.105.54.54 0 0 0-.485.273q-.168.273-.17.75h.021a.8.8 0 0 1 .188-.223.92.92 0 0 1 .569-.195.91.91 0 0 1 .813.477q.125.222.123.509 0 .297-.136.536a1 1 0 0 1-.383.372 1.15 1.15 0 0 1-.571.134m-.003-.443a.54.54 0 0 0 .288-.078.57.57 0 0 0 .2-.211.6.6 0 0 0 .073-.299.6.6 0 0 0-.07-.294.54.54 0 0 0-.484-.285.55.55 0 0 0-.403.173.596.596 0 0 0 .108.914.53.53 0 0 0 .288.08M6.88 6.579v-.396l1.05-1.03q.15-.15.25-.27a1 1 0 0 0 .151-.229.6.6 0 0 0 .05-.236.432.432 0 0 0-.244-.405.6.6 0 0 0-.258-.056q-.15 0-.261.062a.43.43 0 0 0-.175.173.56.56 0 0 0-.06.267H6.86q0-.288.132-.5a.9.9 0 0 1 .362-.33q.231-.117.532-.117.303 0 .534.114.23.114.358.312a.8.8 0 0 1 .128.452.9.9 0 0 1-.065.334q-.065.164-.229.363-.162.2-.456.483l-.522.53v.021h1.318v.458zM10.57 6.62a1.3 1.3 0 0 1-.423-.075 1 1 0 0 1-.373-.244 1.2 1.2 0 0 1-.263-.45 2.1 2.1 0 0 1-.096-.699q0-.389.083-.693t.238-.514a1.05 1.05 0 0 1 .374-.322q.219-.11.492-.11.285 0 .505.112a.973.973 0 0 1 .526.744h-.54a.5.5 0 0 0-.17-.277.5.5 0 0 0-.322-.105.54.54 0 0 0-.484.273q-.168.273-.17.75h.02a.8.8 0 0 1 .188-.223.92.92 0 0 1 .569-.195.91.91 0 0 1 .814.477q.125.222.123.509 0 .297-.136.536a1 1 0 0 1-.383.372 1.15 1.15 0 0 1-.572.134m-.002-.443a.54.54 0 0 0 .288-.078.57.57 0 0 0 .2-.211.6.6 0 0 0 .073-.299.6.6 0 0 0-.071-.294.54.54 0 0 0-.483-.285.54.54 0 0 0-.403.173.597.597 0 0 0 .107.914.53.53 0 0 0 .289.08"})]}),vm=()=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",children:[(0,h.jsx)("path",{fill:"currentColor",fillOpacity:"0.3",d:"M0 13.037h4.267v2.444a.52.52 0 0 1-.519.519H.518A.52.52 0 0 1 0 15.482zM0 7.037c0-.286.232-.518.519-.518h3.23c.286 0 .518.232.518.518v5.407H0z"}),(0,h.jsx)("path",{fill:"currentColor",fillOpacity:".8",d:"M5.867 7.704h4.266v7.778a.52.52 0 0 1-.518.518h-3.23a.52.52 0 0 1-.518-.518z"}),(0,h.jsx)("path",{fill:"currentColor",fillOpacity:"0.3",d:"M5.867 7.111h4.266V4.074a.52.52 0 0 0-.518-.518h-3.23a.52.52 0 0 0-.518.518zM11.733 10.074H16v5.407a.52.52 0 0 1-.518.519h-3.23a.52.52 0 0 1-.519-.519zM11.733 9.481H16V.52A.52.52 0 0 0 15.482 0h-3.23a.52.52 0 0 0-.519.519z"}),(0,h.jsx)("path",{stroke:"gray",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.133",d:"m.774 7.611 5.924-3.434 4.121 2.004L15 3"}),(0,h.jsx)("ellipse",{cx:"14.5",cy:"3",fill:"currentColor",rx:"1.5",ry:"1.667"})]}),vy=()=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",fill:"none",viewBox:"0 0 17 16",children:[(0,h.jsx)("path",{fill:"currentColor",fillOpacity:"0.3",d:"M0 13.037h4.26v2.444a.52.52 0 0 1-.518.519H.52A.52.52 0 0 1 0 15.482zM0 7.037c0-.286.232-.518.519-.518h3.223c.287 0 .519.232.519.518v5.407H0z"}),(0,h.jsx)("path",{fill:"currentColor",fillOpacity:".8",d:"M5.859 7.704h4.26v7.778a.52.52 0 0 1-.518.518H6.377a.52.52 0 0 1-.518-.518zM5.859 7.111h4.26V4.074a.52.52 0 0 0-.518-.518H6.377a.52.52 0 0 0-.518.518z"}),(0,h.jsx)("path",{fill:"currentColor",fillOpacity:"0.3",d:"M11.717 10.074h4.261v5.407a.52.52 0 0 1-.518.519h-3.224a.52.52 0 0 1-.519-.519zM11.717 9.481h4.261V.52A.52.52 0 0 0 15.46 0h-3.224a.52.52 0 0 0-.519.519z"}),(0,h.jsx)("path",{stroke:"gray",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.133",d:"M.772 7.611 6.69 4.177l4.115 2.003 4.887-3.148"})]}),vb=()=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",fill:"none",viewBox:"0 0 17 16",children:[(0,h.jsx)("path",{fill:"currentColor",fillOpacity:".8",d:"M0 13.037h4.26v2.444a.52.52 0 0 1-.518.519H.52A.52.52 0 0 1 0 15.482z"}),(0,h.jsx)("path",{fill:"currentColor",fillOpacity:"0.3",d:"M0 7.037c0-.286.232-.518.519-.518h3.223c.287 0 .519.232.519.518v5.407H0z"}),(0,h.jsx)("path",{fill:"currentColor",fillOpacity:".8",d:"M5.859 7.704h4.26v7.778a.52.52 0 0 1-.518.518H6.377a.52.52 0 0 1-.518-.518z"}),(0,h.jsx)("path",{fill:"currentColor",fillOpacity:"0.3",d:"M5.859 7.111h4.26V4.074a.52.52 0 0 0-.518-.518H6.377a.52.52 0 0 0-.518.518z"}),(0,h.jsx)("path",{fill:"currentColor",fillOpacity:".8",d:"M11.717 10.074h4.261v5.407a.52.52 0 0 1-.518.519h-3.224a.52.52 0 0 1-.519-.519z"}),(0,h.jsx)("path",{fill:"currentColor",fillOpacity:"0.3",d:"M11.717 9.481h4.261V.52A.52.52 0 0 0 15.46 0h-3.224a.52.52 0 0 0-.519.519z"}),(0,h.jsx)("path",{stroke:"#333",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.133",d:"M.772 7.611 6.69 4.177l4.115 2.003 4.887-3.148"})]}),vx=()=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",children:[(0,h.jsx)("rect",{width:"4.22",height:"3.556",y:"12.445",fill:"currentColor",rx:".519"}),(0,h.jsx)("rect",{width:"4.22",height:"10.667",fill:"currentColor",fillOpacity:"0.3",rx:".519"}),(0,h.jsx)("rect",{width:"4.22",height:"10.074",x:"5.802",y:"5.926",fill:"currentColor",rx:".519"}),(0,h.jsx)("rect",{width:"4.22",height:"4.148",fill:"currentColor",fillOpacity:"0.3",rx:".519",transform:"matrix(1 0 0 -1 5.802 4.148)"}),(0,h.jsx)("rect",{width:"4.22",height:"6.518",x:"11.78",y:"9.481",fill:"currentColor",rx:".519"}),(0,h.jsx)("rect",{width:"4.22",height:"7.704",fill:"currentColor",fillOpacity:"0.3",rx:".519",transform:"matrix(1 0 0 -1 11.604 7.704)"})]}),vC=()=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",children:[(0,h.jsx)("rect",{width:"4.22",height:"3.556",y:"12.445",fill:"currentColor",fillOpacity:"0.3",rx:".519"}),(0,h.jsx)("rect",{width:"4.22",height:"10.667",fill:"currentColor",fillOpacity:"0.3",rx:".519"}),(0,h.jsx)("rect",{width:"4.22",height:"10.074",x:"5.802",y:"5.926",fill:"currentColor",rx:".519"}),(0,h.jsx)("rect",{width:"4.22",height:"4.148",fill:"currentColor",fillOpacity:".8",rx:".519",transform:"matrix(1 0 0 -1 5.802 4.148)"}),(0,h.jsx)("rect",{width:"4.22",height:"6.518",x:"11.78",y:"9.481",fill:"currentColor",fillOpacity:"0.3",rx:".519"}),(0,h.jsx)("rect",{width:"4.22",height:"7.704",fill:"currentColor",fillOpacity:"0.3",rx:".519",transform:"matrix(1 0 0 -1 11.604 7.704)"})]}),vv=()=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",children:[(0,h.jsx)("rect",{width:"4.22",height:"3.556",y:"12.445",fill:"currentColor",fillOpacity:"0.3",rx:".519"}),(0,h.jsx)("rect",{width:"4.22",height:"10.667",fill:"currentColor",fillOpacity:"0.3",rx:".519"}),(0,h.jsx)("rect",{width:"4.22",height:"10.074",x:"5.802",y:"5.926",fill:"currentColor",rx:".519"}),(0,h.jsx)("rect",{width:"4.22",height:"4.148",fill:"currentColor",fillOpacity:"0.3",rx:".519",transform:"matrix(1 0 0 -1 5.802 4.148)"}),(0,h.jsx)("rect",{width:"4.22",height:"6.518",x:"11.78",y:"9.481",fill:"currentColor",fillOpacity:"0.3",rx:".519"}),(0,h.jsx)("rect",{width:"4.22",height:"7.704",fill:"currentColor",fillOpacity:"0.3",rx:".519",transform:"matrix(1 0 0 -1 11.604 7.704)"})]}),vj=()=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",children:[(0,h.jsx)("rect",{width:"3.2",height:"6.518",y:"9.482",fill:"currentColor",fillOpacity:"0.3",rx:".519"}),(0,h.jsx)("rect",{width:"3.2",height:"4.741",fill:"currentColor",fillOpacity:".8",rx:".519",transform:"matrix(1 0 0 -1 8.533 4.741)"}),(0,h.jsx)("rect",{width:"3.2",height:"6.518",fill:"currentColor",fillOpacity:"0.3",rx:".519",transform:"matrix(1 0 0 -1 4.267 11.26)"}),(0,h.jsx)("rect",{width:"3.2",height:"15.999",fill:"currentColor",fillOpacity:"0.3",rx:".519",transform:"matrix(1 0 0 -1 12.8 16)"})]}),vA=()=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",children:[(0,h.jsx)("path",{fill:"#e5e5e5",d:"M6.4 3.84 3.467 0H.533v16H15.2l.8-.64V9.28l-.8-1.6h-2.667l-3.2-3.84z"}),(0,h.jsx)("rect",{width:"4.267",height:"8.32",fill:"currentColor",fillOpacity:"0.3",rx:".52",transform:"matrix(-1 0 0 1 16 7.68)"}),(0,h.jsx)("rect",{width:"4.267",height:"12.16",fill:"currentColor",fillOpacity:".8",rx:".52",transform:"matrix(-1 0 0 1 10.133 3.84)"}),(0,h.jsx)("rect",{width:"4.267",height:"16",fill:"currentColor",fillOpacity:"0.3",rx:".52",transform:"matrix(-1 0 0 1 4.267 0)"})]}),vw=()=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",children:[(0,h.jsx)("rect",{width:"2.056",height:"2.056",fill:"currentColor",fillOpacity:"0.3",rx:"1.028",transform:"matrix(-1 0 0 1 2.056 12.869)"}),(0,h.jsx)("rect",{width:"2.056",height:"2.056",fill:"currentColor",fillOpacity:"0.3",rx:"1.028",transform:"matrix(-1 0 0 1 2.056 12.869)"}),(0,h.jsx)("rect",{width:"2.056",height:"2.056",fill:"currentColor",fillOpacity:"0.3",rx:"1.028",transform:"matrix(-1 0 0 1 3.598 7.215)"}),(0,h.jsx)("rect",{width:"2.056",height:"2.056",fill:"currentColor",fillOpacity:"0.3",rx:"1.028",transform:"matrix(-1 0 0 1 6.681 11.327)"}),(0,h.jsx)("rect",{width:"2.056",height:"2.056",fill:"currentColor",fillOpacity:"0.3",rx:"1.028",transform:"matrix(-1 0 0 1 9.251 7.215)"}),(0,h.jsx)("rect",{width:"2.056",height:"2.056",fill:"currentColor",fillOpacity:".8",rx:"1.028",transform:"matrix(-1 0 0 1 10.28 2.59)"}),(0,h.jsx)("rect",{width:"2.056",height:"2.056",fill:"currentColor",fillOpacity:"0.3",rx:"1.028",transform:"matrix(-1 0 0 1 13.877 6.187)"}),(0,h.jsx)("rect",{width:"2.056",height:"2.056",fill:"currentColor",fillOpacity:"0.3",rx:"1.028",transform:"matrix(-1 0 0 1 15.933 .533)"})]}),vk=()=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",children:[(0,h.jsx)("rect",{width:"2.056",height:"2.056",fill:"currentColor",fillOpacity:"0.3",rx:"1.028",transform:"matrix(-1 0 0 1 2.056 12.869)"}),(0,h.jsx)("rect",{width:"2.056",height:"2.056",fill:"currentColor",fillOpacity:"0.3",rx:"1.028",transform:"matrix(-1 0 0 1 2.056 12.869)"}),(0,h.jsx)("rect",{width:"2.056",height:"2.056",fill:"currentColor",fillOpacity:".8",rx:"1.028",transform:"matrix(-1 0 0 1 3.598 7.215)"}),(0,h.jsx)("rect",{width:"2.056",height:"2.056",fill:"currentColor",fillOpacity:".8",rx:"1.028",transform:"matrix(-1 0 0 1 6.681 11.327)"}),(0,h.jsx)("rect",{width:"2.056",height:"2.056",fill:"currentColor",fillOpacity:"0.3",rx:"1.028",transform:"matrix(-1 0 0 1 9.251 7.215)"}),(0,h.jsx)("rect",{width:"2.056",height:"2.056",fill:"currentColor",fillOpacity:".8",rx:"1.028",transform:"matrix(-1 0 0 1 10.28 2.59)"}),(0,h.jsx)("rect",{width:"2.056",height:"2.056",fill:"currentColor",fillOpacity:"0.3",rx:"1.028",transform:"matrix(-1 0 0 1 13.877 6.187)"}),(0,h.jsx)("rect",{width:"2.056",height:"2.056",fill:"currentColor",fillOpacity:"0.3",rx:"1.028",transform:"matrix(-1 0 0 1 15.933 .533)"})]}),vP=()=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",children:[(0,h.jsx)("rect",{width:"1.933",height:"1.933",fill:"currentColor",fillOpacity:"0.3",rx:".967",transform:"matrix(-1 0 0 1 1.933 13.133)"}),(0,h.jsx)("rect",{width:"1.933",height:"1.933",fill:"currentColor",fillOpacity:"0.3",rx:".967",transform:"matrix(-1 0 0 1 1.933 13.133)"}),(0,h.jsx)("rect",{width:"2.9",height:"2.9",fill:"currentColor",fillOpacity:"0.3",rx:"1.45",transform:"matrix(-1 0 0 1 4.35 6.85)"}),(0,h.jsx)("rect",{width:"1.45",height:"1.45",fill:"currentColor",fillOpacity:"0.3",rx:".725",transform:"matrix(-1 0 0 1 5.8 11.683)"}),(0,h.jsx)("rect",{width:"3.383",height:"3.383",fill:"currentColor",fillOpacity:"0.3",rx:"1.692",transform:"matrix(-1 0 0 1 10.15 7.817)"}),(0,h.jsx)("rect",{width:"3.867",height:"3.867",fill:"currentColor",rx:"1.933",transform:"matrix(-1 0 0 1 9.666 1.533)"}),(0,h.jsx)("rect",{width:"3.383",height:"3.383",fill:"currentColor",fillOpacity:"0.3",rx:"1.692",transform:"matrix(-1 0 0 1 14.5 6.85)"}),(0,h.jsx)("rect",{width:"2.9",height:"2.9",fill:"currentColor",fillOpacity:"0.3",rx:"1.45",transform:"matrix(-1 0 0 1 15.467 1.533)"})]}),vS=e=>{switch(e){case"bar":return{"data-point":vl,series:va,"x-value":vs};case"column":return{"data-point":ve,series:vt,"x-value":vn};case"barStacked":case"barStackedFill":return{"data-point":vu,series:vc,"x-value":vd};case"columnStacked":case"columnStackedFill":return{"data-point":vr,series:vi,"x-value":vo};case"line":case"areaStacked":return{"data-point":vf,series:vg};case"combo":return{"data-point":vm,series:vb,"x-value":vy};case"pie":return{"x-value":vp};case"donut":return{"x-value":vh};case"funnel":return{"data-point":vA};case"waterfall":return{bar:vj};case"mekko":return{"data-point":vx,series:vv,"x-value":vC};case"scatter":return{"data-point":vw,series:vk};case"bubble":return{"data-point":vP};default:throw Error("Unsupported visualization type: ".concat(e))}},vL=e=>{var t;let n=(0,Z.s9)(),r=gG(e=>e.computedConfig.type),i=(()=>{let e=C_();return(0,M.useCallback)(t=>{let n=CQ(t.groupValues),r=e.filter(e=>CQ(e.groupValues)===n),i=r.findIndex(e=>e.id===t.id);return -1===i?null:i===r.length-1?r[i-1]:r[i+1]},[e])})(),o=t=>n=>{n.preventDefault(),e.setActiveSubMenu(t)},l=e.highlightOptions.at(0);return(0,h.jsxs)(Cq,{children:[(0,h.jsxs)(C$,{onClick:()=>{let{propertyKey:t,rowIndex:n}=dD(e.dataPoint.id);e.onAnnotate({id:crypto.randomUUID(),propertyKey:t,rowIndex:n,rowValue:e.getRowCategoricalValue(n),config:{type:"tooltip"}}),e.setActiveSubMenu(null)},children:[(0,h.jsx)(C3,{}),(0,h.jsx)(C0,{children:n("graph.annotations.baseMenu.pinNumber")})]}),(0,h.jsxs)(C$,{onClick:o("text"),children:[(0,h.jsx)(C7,{}),(0,h.jsx)(C0,{children:n("graph.annotations.baseMenu.annotate")}),(0,h.jsx)(C1,{children:(0,h.jsx)(Cy,{size:"xs",variant:"muted"})})]}),1===e.highlightOptions.length&&l&&(0,h.jsxs)(C$,{onClick:()=>{var t;let n=null==(t=e.highlightOptions[0])?void 0:t.annotation;if(!n)return;let{propertyKey:r,rowIndex:i}=dD(e.dataPoint.id);e.onAnnotate({id:crypto.randomUUID(),propertyKey:r,rowIndex:i,rowValue:e.getRowCategoricalValue(i),config:n}),e.setActiveSubMenu(null)},children:[vM(r,null==(t=e.highlightOptions[0])?void 0:t.annotation.highlight),(0,h.jsx)(C0,{children:n("graph.annotations.baseMenu.highlightWithLabel",{label:n("graph.annotations.highlights.labels.".concat(l.id))})})]}),e.highlightOptions.length>1&&(0,h.jsxs)(C$,{onClick:o("highlight"),children:[(0,h.jsx)(C9,{}),(0,h.jsx)(C0,{children:n("graph.annotations.baseMenu.highlight")}),(0,h.jsx)(C1,{children:(0,h.jsx)(Cy,{size:"xs",variant:"muted"})})]}),e.onRemoveHighlight&&(0,h.jsxs)(C$,{onClick:t=>{var n;t.preventDefault(),null==(n=e.onRemoveHighlight)||n.call(e,e.dataPoint)},children:[(0,h.jsx)(C4,{}),(0,h.jsx)(C0,{children:n("graph.annotations.baseMenu.removeHighlight")})]}),yM(e.dataPoint)&&(0,h.jsxs)(C$,{onClick:()=>{if(!yM(e.dataPoint))return;let t=dD(e.dataPoint.id),n=i(e.dataPoint);n&&(e.onAnnotate({id:crypto.randomUUID(),propertyKey:t.propertyKey,rowIndex:t.rowIndex,rowValue:e.getRowCategoricalValue(t.rowIndex),config:{type:"difference-arrow",start:t,end:dD(n.id),attributes:{type:"relative-difference",color:null,size:"small"}}}),e.setActiveSubMenu(null))},children:[(0,h.jsx)(C6,{}),(0,h.jsx)(C0,{children:n("graph.annotations.baseMenu.differenceArrow")})]}),(0,h.jsxs)(C$,{onClick:o("sticker"),children:[(0,h.jsx)(C8,{}),(0,h.jsx)(C0,{children:n("graph.annotations.baseMenu.addSticker")}),(0,h.jsx)(C1,{children:(0,h.jsx)(Cy,{size:"xs",variant:"muted"})})]})]})},vM=(e,t)=>{if(!t)return null;let n=vS(e),r=null==n?void 0:n[t];return r?(0,h.jsx)(r,{}):null},vO=p.I4.ul(nL(),h_(.25)),vT=p.I4.span(nM(),m1);function vD(e){e.preventDefault(),e.stopPropagation()}let vI={onClick:vD,onClickCapture:vD,onKeyDownCapture:vD,onKeyUpCapture:vD,onMouseDownCapture:vD,onMouseUpCapture:vD,onPointerDownCapture:vD,onPointerUpCapture:vD,onTouchEndCapture:vD,onTouchStartCapture:vD},vz={sm:3,md:4,lg:5},vE={sm:.5,md:1,lg:2,xl:3.5},vH={sm:.5,md:1,lg:1.5},vV={primary:{backgroundColor:"grey0",backgroundColorHovered:e=>uj(e,.9),color:"grey100",colorHovered:"grey95",iconColor:"grey95",iconColorSelected:"grey95"},secondary:{backgroundColor:"transparent",backgroundColorHovered:"grey80",backgroundColorDisabled:"grey90",backgroundColorSelected:"grey80",borderColor:"grey70",borderColorDisabled:"grey70",color:"textPrimary",colorSelected:"textPrimary",iconColor:"textSecondary",iconColorSelected:"textPrimary"},secondaryStrong:{backgroundColor:"transparent",backgroundColorHovered:"grey80",backgroundColorDisabled:"grey90",backgroundColorSelected:"grey80",borderColor:e=>"dark"===e?"grey70":"grey60",borderColorDisabled:"grey70",color:"textPrimary",colorSelected:"textPrimary",iconColor:"textSecondary",iconColorSelected:"textPrimary"},subtle:{backgroundColor:"transparent",backgroundColorHovered:"grey80",backgroundColorDisabled:"transparent",backgroundColorSelected:"grey60",borderColor:"transparent",borderColorDisabled:"transparent",color:"textPrimary",colorSelected:"textPrimary",iconColor:"textSecondary",iconColorSelected:"textPrimary"},marketing:{backgroundColor:"amber40",backgroundColorHovered:"amber30",color:"black",iconColor:"black"},alternative:{backgroundColor:"transparent",backgroundColorHovered:"grey70",backgroundColorDisabled:"transparent",backgroundColorSelected:"grey60",borderColor:"transparent",borderColorDisabled:"transparent",color:"textPrimary",colorSelected:"textPrimary",iconColor:"textSecondary",iconColorSelected:"textPrimary"},standout:{backgroundColor:"blue80",backgroundColorHovered:"blue60",backgroundColorDisabled:"transparent",backgroundColorSelected:"blue60",borderColor:"transparent",borderColorDisabled:"transparent",color:"white",colorSelected:"white",iconColor:"white",iconColorSelected:"white"}},vF=p.I4.span(nO(),sR.subtle),vB=p.I4.span(nT(),e=>{let{$wrap:t}=e;return!t&&h0},sR.subtle),vR=p.I4.div(nD()),vY=(0,p.i7)(nI()),vG=p.I4.div(nz()),vU=p.I4.button(nH(),hW,e=>{var t,n;let{$alignment:r,disabled:i,$isLoading:o,$isSelected:l,$shouldFitContainer:a,$theme:s,$variant:u,$hasAnimatedBorder:c,$horizontalPadding:d,$verticalPadding:h,$radii:g="md"}=e,f=vV[u],m=vW(Object.assign(Object.assign({},e),{scheme:f})),y=uv(m),b=i||l?m:f.backgroundColorHovered,x="string"==typeof b?uv(b):b(y),C=sz[g],v=function(e){let{disabled:t,$isLoading:n}=e;return n?"default":t?"not-allowed":"pointer"}(e),j=vH[h],A=vE[d],w=vz[h]-2*j,k=a?"100%":"auto",P=vN(Object.assign(Object.assign({},e),{theme:s,scheme:f})),S=l&&f.colorSelected?f.colorSelected:f.color,L=l&&f.iconColorSelected?f.iconColorSelected:null!=(t=f.iconColor)?t:f.color,M=l&&f.iconColorSelected?f.iconColorSelected:null!=(n=f.colorHovered)?n:f.color;return(0,p.AH)(nE(),k,C,v,sH("linear-gradient(116.21deg, #44D2E9 10.82%, #D94CF8 62.26%, #50C8EA 113.17%)",1,"md"),vY,c?"block":"none",vG,y,C,P,uv(S),"center"===r?"center":"start","center"===r?"center":"flex-start",h_(j),h_(A),sR.subtle,sR.subtle,k,i?.5:1,vB,m1,h_(w),vG,x,vF,uv(M),vG,x,vG,h_(),vG,o&&"opacity: 0",vF,uv(L))}),vW=e=>{let{disabled:t,scheme:n,$isSelected:r}=e;return t&&n.backgroundColorDisabled?n.backgroundColorDisabled:r&&n.backgroundColorSelected?n.backgroundColorSelected:n.backgroundColor},vN=e=>{let{disabled:t,theme:n,scheme:r}=e,{values:i,colorScheme:o}=n;return t&&r.borderColorDisabled?uv(r.borderColorDisabled):r.borderColor?uv("string"==typeof r.borderColor?r.borderColor:r.borderColor(o)):i.transparent},vK=M.forwardRef((e,t)=>{var{alignment:n="center",wrap:r=!1,children:i,iconAfter:o,iconBefore:l,isDisabled:a=!1,isLoading:s=!1,isSelected:u=!1,shouldFitContainer:c=!1,hasAnimatedBorder:d=!1,horizontalPadding:p="md",verticalPadding:g="md",variant:f="primary",radii:m}=e,y=sJ(e,["alignment","wrap","children","iconAfter","iconBefore","isDisabled","isLoading","isSelected","shouldFitContainer","hasAnimatedBorder","horizontalPadding","verticalPadding","variant","radii"]);let b=mh(),x=a||s;return(0,h.jsx)(vU,Object.assign({$theme:b,$alignment:n,disabled:x,$isLoading:s,$isSelected:u,ref:t,$shouldFitContainer:c,$variant:f,$hasAnimatedBorder:d,$horizontalPadding:p,$verticalPadding:g,$radii:m},y,x?vI:{},{children:(0,h.jsxs)(vG,{children:[l&&(0,h.jsx)(vF,{children:l}),i&&(0,h.jsx)(vB,{$wrap:r,children:i}),o&&(0,h.jsx)(vF,{children:o}),s&&(0,h.jsx)(vR,{children:(0,h.jsx)(xM,{variant:"currentColor"})})]})}))}),vZ=p.I4.div(nV(),hW,h_(1)),vX=p.I4.div(nF(),h_(.25),h_(3)),v_=p.I4.span(nB(),m3,uv("textSecondary")),vQ=(0,p.I4)(vK)(nR(),h_(-.5),h_(3),h_(3)),vJ=e=>{let{onBack:t,title:n,children:r}=e;return(0,M.useEffect)(()=>{let e=e=>{"Escape"===e.key&&(e.preventDefault(),t())};return window.addEventListener("keydown",e,!0),()=>window.removeEventListener("keydown",e,!0)},[t]),(0,h.jsxs)(vZ,{children:[(0,h.jsxs)(vX,{children:[(0,h.jsx)(vQ,{variant:"subtle",horizontalPadding:"sm",verticalPadding:"sm",onClick:e=>{e.preventDefault(),t()},iconBefore:(0,h.jsx)(Cm,{size:"sm"})}),(0,h.jsx)(v_,{children:n})]}),r]})},vq=e=>{let t=(0,Z.s9)(),n=vS(gG(e=>e.computedConfig.type));return(0,h.jsx)(vJ,{title:t("graph.annotations.highlights.menuTitle"),onBack:()=>e.setActiveSubMenu(null),children:(0,h.jsx)(vO,{children:e.options.map(r=>{var i;let o=n[r.annotation.highlight];return o?(0,h.jsxs)(C$,{onClick:(i=r.annotation,()=>{let{propertyKey:t,rowIndex:n}=dD(e.dataPoint.id);e.onAnnotate({id:crypto.randomUUID(),propertyKey:t,rowIndex:n,rowValue:e.getRowCategoricalValue(n),config:i})}),children:[(0,h.jsx)(o,{}),(0,h.jsx)(vT,{children:t("graph.annotations.highlights.labels.".concat(r.id))})]},r.annotation.highlight):null})})})},v$=p.I4.ul(nY()),v1=p.I4.li(nG()),v0=p.I4.button(nU(),sz.sm,h_(.5),uv("grey80")),v2=e=>{let t=(0,Z.s9)(),n=Object.entries(e.stickers);return(0,h.jsx)(vJ,{title:t("graph.annotations.stickerMenu.title"),onBack:()=>e.setActiveSubMenu(null),children:(0,h.jsx)(v$,{children:n.map(t=>{let[n,r]=t;return(0,h.jsx)(v1,{children:(0,h.jsx)(v0,{onClick:()=>{let{propertyKey:t,rowIndex:r}=dD(e.dataPoint.id);e.onAnnotate({id:crypto.randomUUID(),propertyKey:t,rowIndex:r,rowValue:e.getRowCategoricalValue(r),config:{type:"sticker",id:n}})},children:r})},n)})})})},v5={backgroundColor:"grey80",backgroundColorDisabled:"grey80",borderColor:"grey70",borderColorHovered:"grey70",borderColorFocused:"grey60",borderColorDisabled:"grey70",borderColorError:"alert",color:"textPrimary",colorDisabled:"textPrimary"},v3=Object.assign(Object.assign({},v5),{backgroundColor:"transparent",backgroundColorDisabled:"transparent"}),v7=Object.assign(Object.assign({},v5),{backgroundColor:"transparent",backgroundColorDisabled:"transparent",borderColor:"grey0",borderColorFocused:"grey0",borderColorHovered:"grey0",color:"grey0",placeholderColor:"textSecondary"}),v9={default:v5,subtle:Object.assign(Object.assign({},v5),{backgroundColor:"transparent",borderColorHovered:"transparent",backgroundColorDisabled:"transparent",borderColor:"transparent",borderColorFocused:"transparent",borderColorDisabled:"transparent",borderColorError:"alert"}),alternative:{backgroundColor:"grey90",backgroundColorDisabled:"grey90",borderColor:"grey90",borderColorHovered:"grey90",borderColorFocused:"grey80",borderColorDisabled:"grey90",borderColorError:"alert",color:"textPrimary",colorDisabled:"textPrimary"},secondary:v3,grey0:v7,grey80:Object.assign(Object.assign({},v5),{backgroundColor:"grey80",backgroundColorDisabled:"grey90",borderColor:"grey80",borderColorFocused:"grey80",borderColorHovered:"grey80",color:"textPrimary",placeholderColor:"textSecondary"})},v4=function(){let{isDisabled:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,p.AH)(nN(),e&&(0,p.AH)(nW()))},v6=function(){let{variant:e="default",isDisabled:t,isFocused:n,hasError:r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=v9[e],o=r?i.borderColorError:i.borderColorFocused,l=r?i.borderColorError:i.borderColorHovered;return(0,p.AH)(nZ(),uv(t?i.borderColorDisabled:r?i.borderColorError:i.borderColor),sz.md,uv(t?i.backgroundColorDisabled:i.backgroundColor),uv(l),uv(o),n&&(0,p.AH)(nK(),uv(o)))},v8=function(){let{variant:e="default",isDisabled:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=v9[e];return(0,p.AH)(n_(),m1,uv(t?n.colorDisabled:n.color),n.placeholderColor&&(0,p.AH)(nX(),uv(n.placeholderColor)))},je=p.I4.div(nQ(),hW),jt=(0,p.I4)(ej.p)(nq(),e=>{let{$isDisabled:t}=e;return v4({isDisabled:t})},e=>{let{$hasError:t,$variant:n,$isFocused:r}=e;return(0,p.AH)(nJ(),v6({variant:n,hasError:t,isFocused:r}),v8({variant:n}))},h_(.6),h_(1),uv("textPrimary"));p.I4.div(n$(),h_(.5));let jn=p.I4.div(n1(),h_(1),s_.toolbar,h_(.5),uv("overlayBackground"),sz.lg,sU.modern,sH(uv("overlayBorderGradient"),1,"lg")),jr=p.I4.div(n0(),h_(.25),h_(.75),uv("grey60")),ji=(0,M.forwardRef)((e,t)=>{var{children:n}=e,r=sJ(e,["children"]);return(0,h.jsx)(jn,Object.assign({role:"toolbar",ref:t},r,{children:(0,h.jsx)(ey.Bc,{children:n})}))});ji.displayName="Toolbar";let jo={sm:16,md:32},jl=(0,p.i7)(n2()),ja=p.I4.div(n7(),e=>{let{$width:t,$isInstant:n}=e,r=h_(),i=h_(.5),o=jo[t];return(0,p.AH)(n3(),uv("grey100"),sE.sm,sz.md,i,r,o,uv("textPrimary"),s_.tooltip,!n&&(0,p.AH)(n5(),jl,sR.subtle))}),js=p.I4.svg(n9(),uv("grey100")),ju=p.I4.div(n4(),m1,su.bold),jc=p.I4.div(n6(),m3),jd=e=>{var{children:t,helperText:n,label:r,width:i="md",side:o,sideOffset:l=8,align:a,alignOffset:s,delayDuration:u=300,isDisabled:c=!1,isOpen:d,onOpenChange:g,textAlign:f,className:m,hasInvertedTheme:y=!0,disableHoverableContent:b=!0,container:x}=e,C=sJ(e,["children","helperText","label","width","side","sideOffset","align","alignOffset","delayDuration","isDisabled","isOpen","onOpenChange","textAlign","className","hasInvertedTheme","disableHoverableContent","container"]);let v=mh(),j=ml();if(c)return(0,h.jsx)(h.Fragment,{children:t});let A=y?"dark"===v.colorScheme?ge:h4:v;return(0,h.jsxs)(ey.bL,{delayDuration:u,open:d,onOpenChange:g,disableHoverableContent:b,children:[(0,h.jsx)(ey.l9,{asChild:!0,children:t}),(0,h.jsx)(my,{container:null==j?void 0:j.container,id:"tooltip-portal",zIndex:s_.tooltip,children:(0,h.jsx)(p.NP,{theme:A,children:(0,h.jsxs)(ja,Object.assign({as:ey.UC,$width:i,$isInstant:0===u,side:o,sideOffset:l,align:a,alignOffset:s,className:m,style:{textAlign:f}},C,{children:[(0,h.jsx)(js,{as:ey.i3}),(0,h.jsx)(ju,{children:r}),n&&(0,h.jsx)(jc,{children:n})]}))})})]})},jp=(0,p.I4)(jd)(n8(),s_.hint),jh=e=>(0,h.jsx)(jp,Object.assign({isOpen:!0},e)),jg=p.I4.div(re(),hW),jf=(0,M.forwardRef)((e,t)=>{var n,r;let{anchorElement:i,isOpen:o=!1,placement:l="top",offset:a=[4,0],zIndex:s=s_.popover,isWithinPortal:u=!1,children:c}=e,d=(0,M.useRef)(null),[p,g]=(0,M.useState)({x:0,y:0}),[f,m]=(0,M.useState)("absolute"),[y,b]=(0,M.useState)(l),x=g4([t,d]),C=ml();if((0,M.useEffect)(()=>{if(i&&d.current&&o&&1)return(0,eS.ll)(i,d.current,()=>{(0,eS.rD)(i,d.current,{placement:l,middleware:[(0,eL.cY)({mainAxis:a[0],crossAxis:a[1]}),(0,eL.UU)(),(0,eL.BN)()]}).then(e=>{let{x:t,y:n,strategy:r,placement:i}=e;g({x:t,y:n}),m(r),b(i)})})},[i,o,l,a]),!o)return null;let v=null!==p.x&&null!==p.y,j=v?p.y:0,A=v?p.x:0,w=(0,h.jsx)(jg,{ref:x,style:{position:f,top:j,left:A,zIndex:s,visibility:v?"visible":"hidden"},children:"function"==typeof c?c({x:null!=(n=p.x)?n:0,y:null!=(r=p.y)?r:0,strategy:f,placement:y}):c});return u&&"undefined"!=typeof document?(0,h.jsx)(my,{container:null==C?void 0:C.container,zIndex:s,children:w}):w});jf.displayName="Popper";let jm={default:{backgroundColor:"overlayBackground",borderGradient:"overlayBorderGradient",elevation:"lg"},grey80:{backgroundColor:"grey80",elevation:"lg"},secondary:{borderColor:"grey70",backgroundColor:"grey90",elevation:"lg"},subtle:{backgroundColor:"transparent",elevation:"none"}},jy=p.I4.div(rn(),e=>{let{$variant:t}=e,n=jm[t];return(0,p.AH)(rt(),uv(n.backgroundColor),sz.lg,sE[n.elevation],n.borderColor?uv(n.borderColor):"transparent",n.borderGradient?sH(uv(n.borderGradient),1,"lg"):"")}),jb=(0,M.forwardRef)(function(e,t){let{isOpen:n=!1,children:r,anchorElement:i,offset:o=[0,4],placement:l="bottom",onClose:a,label:s,isWithinPortal:u=!1,variant:c="default"}=e,[d,p]=(0,M.useState)(null);return(0,M.useEffect)(()=>{if(!a||!n)return;let e=e=>{if(!(d&&i&&e.target instanceof Node))return;let t=d.contains(e.target),n=i instanceof Element&&i.contains(e.target);t||n||a()};return window.addEventListener("mousedown",e),()=>window.removeEventListener("mousedown",e)},[i,a,d,n]),(0,h.jsx)(jf,{ref:t,anchorElement:i,isOpen:n,placement:l,offset:o,isWithinPortal:u,zIndex:s_.popover,children:(0,h.jsx)(jy,{$variant:c,ref:p,role:"dialog","aria-label":s,children:r})})});p.I4.div(rr());let jx=(0,p.I4)(eM.bL)(ri()),jC=(0,p.I4)(eM.CC)(ro(),uv("grey50")),jv=(0,p.I4)(eM.Q6)(rl(),uv("grey0")),jj=(0,p.I4)(eM.zi)(ra(),uv("grey0"),sE.sm),jA=e=>(0,h.jsxs)(jx,Object.assign({},e,{children:[(0,h.jsx)(jC,{children:(0,h.jsx)(jv,{})}),(0,h.jsx)(jj,{})]})),jw=e=>"--graphy-default-annotation-".concat((0,f.A)(e)),jk=e=>"var(".concat(jw(e),")"),jP="--graphy-first-canvas-color",jS="var(".concat(jP,")"),jL=p.I4.div(rs(),e=>e.$values.map(e=>{let{name:t,value:n}=e;return"".concat(t,": ").concat(n,";")}).join("\n")),jM=e=>{var t;let{children:n}=e,r=gG(e=>e.theme.canvasColors),i=gG(e=>e.theme.defaultAnnotationColorIds),o=gG(e=>e.canvasColorToVariableName),l=r.map(e=>({name:"--".concat(o(e.id)),value:e.value})),a=null==(t=r[0])?void 0:t.id;return l.push({name:jP,value:a?"var(--".concat(o(a),")"):uv("textPrimary")}),Object.values(yf.keyof().Values).forEach(e=>{l.push({name:jw(e),value:((e,t)=>t?"var(--".concat(e(t),", ").concat(jS,")"):jS)(o,i[e])})}),(0,h.jsx)(jL,{$values:l,children:n})},jO=p.I4.svg(ru(),e=>{let{$variant:t}=e;return"neon"===t?"none":uv("grey85")}),jT={sm:hX(1.875),lg:hX(2.5)},jD=e=>{let{palette:t,variant:n="default",maxColors:r=3,size:i="sm"}=e,o=(0,M.useId)(),l=Math.min(Math.max(t.length,1),r,4),a=jT[i],s=a+(l-1)*(a-5),u=a/2,c=[...new Set(t)];return(0,h.jsxs)(jO,{width:s,height:a,$variant:n,children:["neon"===n&&(0,h.jsx)("defs",{children:(0,h.jsx)("filter",{id:o,x:-50,y:-50,width:200,height:200,filterUnits:"userSpaceOnUse",children:(0,h.jsx)("feGaussianBlur",{stdDeviation:"2"})})}),c.slice(0,l).reverse().map((e,t)=>{let r=s-a/2-t*(a-5);return(0,h.jsxs)("g",{children:["neon"===n&&(0,h.jsx)("circle",{cx:r,cy:u,r:a/2,fill:e,filter:"url(#".concat(o,")")}),(0,h.jsx)("circle",{cx:r,cy:u,r:a/2,fill:e})]},t)})]})},jI=p.I4.div(rd(),hW,e=>{let{$hasError:t,$variant:n,$isFocused:r}=e;return v6({variant:n,hasError:t,isFocused:r})},h_(1),h_(.6),h_(1),uv("textPrimary"),e=>{let{$isDisabled:t}=e;return t&&(0,p.AH)(rc())}),jz=p.I4.div(rp(),hW,e=>{let{$hasError:t,$variant:n,$isFocused:r}=e;return v6({variant:n,hasError:t,isFocused:r})},h_(.6),h_(1)),jE=p.I4.input(rg(),e=>{let{$isDisabled:t}=e;return v4({isDisabled:t})},e=>{let{$hasError:t,$variant:n,$isFocused:r}=e;return v8({variant:n})},uv("textPrimary"),e=>{let{$isDisabled:t}=e;return t&&(0,p.AH)(rh())});p.I4.div(rf(),uv("grey70"));let jH=p.I4.span(rm(),m1),jV=p.I4.div(ry(),h_(1)),jF=(0,p.I4)(eb.h)(rb(),sz.md,uv("grey90")),jB=(0,p.I4)(ex.t)(rx()),jR=(0,p.I4)(eC.hB)(rC(),sz.sm,uv("grey90")),jY=(0,p.I4)(ev.a)(rv(),uv("white"),sE.sm),jG=p.I4.div(rj(),hW,s_.popover,uv("grey100"),sz.md,sE.md,uv("grey90"),uv("textPrimary")),jU=p.I4.div(rA(),h_(1),h_(1.5)),jW=p.I4.div(rw(),m3,uv("textPrimary")),jN=e=>{let{label:t,value:n,onChange:r,hasError:i,variant:o="default",isDisabled:l=!1,isWithinPortal:a=!0,popoverContentProps:s}=e,[u,c]=(0,M.useState)(!1),d=a?eO.ZL:M.Fragment;return(0,h.jsxs)(eO.bL,{open:u,onOpenChange:e=>{l||c(e)},children:[(0,h.jsx)(eO.l9,{asChild:!0,children:(0,h.jsxs)(jI,{role:l?"":"button",tabIndex:l?-1:0,$hasError:i,$variant:o,$isFocused:u,$isDisabled:l,children:[n&&(0,h.jsx)(jD,{palette:[n],maxColors:1}),(0,h.jsx)(jH,{children:null!=t?t:n})]})}),(0,h.jsx)(d,{children:(0,h.jsx)(mf,{children:(0,h.jsx)(jG,Object.assign({as:eO.UC,align:"center",side:"bottom",sideOffset:hX(.5)},s,{children:(0,h.jsxs)(jU,{children:[(0,h.jsx)(jW,{children:"Pick color"}),(0,h.jsx)("div",{children:u&&(0,h.jsx)(jK,{initialValue:n,onChange:r,onEnterPress:()=>{c(!1)}})})]})}))})})]})},jK=e=>{let{initialValue:t,onChange:n,onEnterPress:r}=e,[i,o]=(0,M.useState)((0,eA.H0)(null!=t?t:"#af9af7").toFormat("hsb")),[l,a]=(0,M.useState)((0,eA.H0)(null!=t?t:"#af9af7").toString("hex"));return(0,h.jsx)(ew.sk,{value:i,onChange:e=>{o(e),a(e.toString("hex")),n(e.toString("hex"))},children:(0,h.jsxs)(jV,{children:[(0,h.jsx)(jF,{colorSpace:"hsb",xChannel:"saturation",yChannel:"brightness",children:(0,h.jsx)(jY,{})}),(0,h.jsx)(jB,{colorSpace:"hsb",channel:"hue",children:(0,h.jsx)(jR,{children:(0,h.jsx)(jY,{})})}),(0,h.jsx)(jz,{children:(0,h.jsx)(jE,{placeholder:"#000000",value:l,onChange:e=>{a(e.target.value);try{let t=e.target.value.trim();t.startsWith("#")||(t="#".concat(t));let r=(0,eA.H0)(t);o(r),n(r.toString("hex"))}catch(e){}},onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),e.stopPropagation(),r())},onKeyDownCapture:e=>{"Backspace"===e.key&&e.stopPropagation()},autoFocus:!0})})]})})},jZ=p.I4.div(rk(),e=>{let{$isSelected:t}=e;return t?"3px solid ".concat(uv("grey60")):"none"}),jX=(0,p.I4)(jZ)(rP(),e=>{let{$colorOption:t}=e;return t},e=>{let{$borderColor:t}=e;return t}),j_=(0,p.I4)(jZ)(rS(),ye(1.4,void 0,.15),uv("grey60"));p.I4.div(rL(),h_(1));let jQ=p.I4.div(rM(),m3,uv("textSecondary")),jJ=p.I4.div(rO()),jq=p.I4.div(rT()),j$=p.I4.div(rD()),j1=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,j0=(e,t)=>"var(--".concat(t(e),")"),j2=e=>{var t;let{seriesColorOptions:n,value:r,tooltip:i,onChange:o,renderIcon:l,getSwatchStyles:a,showTransparentOption:s,showOpacitySlider:u,opacityValue:c,onOpacityChange:d}=e,p=(0,Z.s9)(),g=gG(e=>e.theme.canvasColors),f=gG(e=>e.canvasColorToVariableName),[m,y]=(0,M.useState)(!1),[b,x]=(0,M.useState)(null),[C,v]=(0,M.useState)(null);r=null!=r?r:null==(t=g[0])?void 0:t.value;let j=(e,t)=>{null==o||o(e),t&&y(!1)},A=(0,M.useMemo)(()=>e=>a?a(e):dI(e),[a]),w=(0,M.useMemo)(()=>A(r),[A,r]),k=g.find(e=>j0(e.id,f)===r),P=j1.test(r)?r:k&&j1.test(k.value)?k.value:void 0;return(0,h.jsxs)(jM,{children:[(0,h.jsx)(jb,{anchorElement:b,isOpen:m,placement:"bottom-start",offset:[0,8],children:(0,h.jsxs)(jQ,{ref:v,children:[(0,h.jsx)("h4",{children:p("graph.colorDropdown.colors")}),(0,h.jsxs)(jJ,{children:[g.map(e=>{var t;let n=A(e.value);return(0,h.jsx)(jd,{label:e.label,children:(0,h.jsx)(vK,{variant:"subtle",onMouseDown:t=>{t.preventDefault(),j(j0(e.id,f),!0)},iconBefore:(0,h.jsx)(jX,{$borderColor:n.borderColor,$colorOption:n.fillColor,$isSelected:r===e.value})})},null!=(t=e.id)?t:e.value)}),s&&(0,h.jsx)(jd,{label:p("graph.colorDropdown.transparent"),children:(0,h.jsx)(vK,{variant:"subtle",onMouseDown:e=>{e.preventDefault(),j("transparent",!0)},iconBefore:(0,h.jsx)(j_,{$isSelected:"transparent"===r})})})]}),(null==n?void 0:n.length)?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("h4",{children:p("graph.colorDropdown.chartColors")}),(0,h.jsx)(jJ,{children:n.map(e=>{let t=A(e.value);return(0,h.jsx)(jd,{label:e.label,children:(0,h.jsx)(vK,{variant:"subtle",onMouseDown:t=>{t.preventDefault(),j(e.value,!0)},iconBefore:(0,h.jsx)(jX,{$borderColor:t.borderColor,$colorOption:t.fillColor,$isSelected:r===e.value})})},e.label)})})]}):null,(0,h.jsx)("h4",{children:p("graph.colorDropdown.custom")}),(0,h.jsx)(jq,{children:(0,h.jsx)(jN,{isWithinPortal:!1,onChange:e=>j(e,!1),value:P,popoverContentProps:{side:"right",align:"start",sideOffset:16,onInteractOutside:e=>{(null==C?void 0:C.contains(e.target))||e.preventDefault()}}})}),u&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("h4",{children:p("graph.colorDropdown.opacity")}),(0,h.jsx)(j$,{children:(0,h.jsx)(jA,{min:0,max:1,step:.01,value:[null!=c?c:0],onValueChange:e=>{let[t]=e;return"number"==typeof t&&(null==d?void 0:d(t))}})})]})]})}),(0,h.jsx)(jd,{label:i,hasInvertedTheme:!1,children:(0,h.jsx)(vK,{ref:x,onMouseDown:e=>{e.preventDefault(),y(!m)},variant:"subtle",iconBefore:l?l(r):"transparent"===r?(0,h.jsx)(j_,{}):(0,h.jsx)(jX,{$borderColor:w.borderColor,$colorOption:w.fillColor})})})]})},j5=e=>{let{as:t,children:n,isDisabled:r=!1,shouldReturnFocus:i=!0}=e;return(0,h.jsx)(eT.Ay,{as:t,disabled:r,returnFocus:i,autoFocus:!1,children:n})},j3=(0,M.createContext)({descendants:[],availableDescendants:[],registerDescendant:()=>{},unregisterDescendant:()=>{}}),j7=()=>(0,M.useContext)(j3),j9=e=>{let{children:t}=e,[n,r]=(0,M.useState)([]),i=(0,M.useCallback)(e=>{var{element:t,index:n}=e,i=sJ(e,["element","index"]);r(e=>e.find(e=>e.element===t&&e.index===n)?e:[...e,Object.assign(Object.assign({},i),{element:t})].map((e,t)=>Object.assign(Object.assign({},e),{index:t})))},[]),o=(0,M.useCallback)(e=>{r(t=>t.filter(t=>e!==t.element))},[]),l=(0,M.useMemo)(()=>n.filter(e=>{let{isDisabled:t}=e;return!t}),[n]),a=(0,M.useMemo)(()=>({descendants:n,availableDescendants:l,registerDescendant:i,unregisterDescendant:o}),[n,l,i,o]);return(0,h.jsx)(j3.Provider,{value:a,children:t})};function j4(e,t){return"".concat(e,"-option-").concat(t)}let j6=M.createContext(null),j8=()=>{var e;let t=(0,M.useContext)(j6);return null!=(e=null==t?void 0:t.appearance)?e:"default"},Ae=e=>{let{appearance:t="default",children:n}=e,r=(0,M.useMemo)(()=>({appearance:t}),[t]);return(0,h.jsx)(j6.Provider,{value:r,children:n})},At=(0,M.createContext)(null),An=()=>{let e=(0,M.useContext)(At);if(null===e)throw Error("Make sure MenuNavigationProvider is present in the react tree.");return e},Ar=e=>{let{children:t,id:n,onItemSelect:r}=e,i=(0,M.useId)(),o=(0,M.useMemo)(()=>n||i,[n,i]),[l,a]=(0,M.useState)(-1),[s,u]=(0,M.useState)(!1),c=(0,M.useCallback)(()=>a(-1),[a]),d=(0,M.useMemo)(()=>({selectionIndex:l,moveSelectionIndex:a,clearSelectionIndex:c,menuId:o,shouldDisableMouseEvents:s,setDisableMouseEvents:u,onItemSelect:r}),[l,c,o,s,r]);return(0,h.jsx)(At.Provider,{value:d,children:t})},Ai=e=>{let{children:t}=e;return t},Ao=(0,M.forwardRef)(function(e,t){let{"aria-label":n,children:r,numCols:i=1,isKeyboardNavigationEnabled:o,renderInner:l=Ai,onKeyPressAtEdge:a,role:s="menu"}=e,{selectionIndex:u,moveSelectionIndex:c,menuId:d,setDisableMouseEvents:p}=An(),{descendants:g,availableDescendants:f}=j7(),{hasFocus:m,focusBindings:y}=g_({onBlur:()=>{c(-1)}}),b=-1===u?void 0:j4(d,u),x=(0,M.useCallback)(e=>{p(!0);let t=f.findIndex(e=>{let{index:t}=e;return t===u}),n=(e=>{let{direction:t,numCols:n,currentIndex:r,maxIndex:i}=e;switch(t){case"ArrowDown":return Math.min(r+n,i);case"ArrowLeft":return r%n==0?r:Math.max(r-1,0);case"ArrowRight":return r%n==n-1?r:Math.min(r+1,i);case"ArrowUp":{let e=r-n;return e<0?r:e}}})({direction:e,numCols:i,maxIndex:g.length-1,currentIndex:t}),r=f[n];if(r){let e=dz(r.element);hR(r.element,e)||r.element.scrollIntoView({block:"nearest",inline:"nearest"}),c(r.index)}n===u&&(null==a||a(e))},[p,f,g.length,i,u,c,a]),C=(0,M.useCallback)(e=>{var t;if(["Enter","Tab"].includes(e.key)){let t=g[u];if(!t)return;return e.preventDefault(),void t.onSelect()}return"input"!==(null==(t=document.activeElement)?void 0:t.tagName)&&["ArrowLeft","ArrowRight"].includes(e.key)||["ArrowUp","ArrowDown"].includes(e.key)?(e.preventDefault(),void x(e.key)):void 0},[u,g,x]),v=m||o;return(0,M.useEffect)(()=>{if(v)return window.addEventListener("keydown",C),()=>{window.removeEventListener("keydown",C)}},[v,C]),(0,h.jsx)("div",Object.assign({id:d,"aria-activedescendant":b,"aria-label":n,role:s,ref:t},y,{tabIndex:-1,children:l({children:r})}))}),Al=(0,M.forwardRef)(function(e,t){let{"aria-label":n,children:r,id:i,numCols:o,isKeyboardNavigationEnabled:l,onKeyPressAtEdge:a,renderInner:s,role:u,onItemSelect:c,appearance:d}=e;return(0,h.jsx)(j9,{children:(0,h.jsx)(Ar,{id:i,onItemSelect:c,children:(0,h.jsx)(Ae,{appearance:d,children:(0,h.jsx)(Ao,{ref:t,role:u,"aria-label":n,numCols:o,renderInner:s,isKeyboardNavigationEnabled:l,onKeyPressAtEdge:a,children:r})})})})}),Aa=p.I4.div(rI(),h_(),h_()),As=p.I4.div(rz(),m3,uv("textSecondary"),h_(),h_()),Au=e=>{let{children:t,title:n}=e;return(0,h.jsxs)(Aa,{children:[(0,h.jsx)(As,{children:n}),t]})},Ac={sm:h_(.75),md:h_(1.25)},Ad={default:"textPrimary",disabled:"textDisabled",selected:"textPrimary",highlighted:"textPrimary"},Ap={default:"textPrimary",disabled:"textDisabled",selected:"textPrimary",highlighted:"textPrimary"},Ah={default:{default:"transparent",disabled:"transparent",selected:"grey60",highlighted:"grey70"},popover:{default:"transparent",disabled:"transparent",selected:"grey60",highlighted:"grey70"},filled:{default:"grey70",disabled:"grey80",selected:"grey50",highlighted:"grey60"}},Ag=p.I4.div(rE(),e=>{let{$shouldFillSpace:t}=e;return+!!t},e=>{let{$shouldFillSpace:t}=e;return+!!t},uv("textPrimary")),Af=(0,p.I4)(Ag)(rV(),uv("textSecondary"),e=>{let{$hasEmphasis:t}=e;return t&&(0,p.AH)(rH(),uv("grey80"),h_(.5),h_(-.5),sz.md)}),Am=(0,p.I4)(Ag)(rF(),h_(),h_(-1),h_(-1)),Ay=p.I4.div(rB(),e=>{let{$variant:t}=e;return"bold"===t?m0:m1},h0),Ab=p.I4.div(rR(),m3,uv("textSecondary")),Ax=p.I4.div(rU(),e=>{let{$state:t,$appearance:n}=e;return uv(Ah[n][t])},sz.lg,e=>{let{$gap:t}=e;return Ac[t]},h_(1),h_(),e=>{let{$state:t}=e;return(0,p.AH)(rG(),Af,uv(Ad[t]),Ay,uv(Ap[t]),"selected"!==t&&"disabled"!==t&&(0,p.AH)(rY(),Af,uv(Ad.highlighted),Ay,uv(Ap.highlighted)))}),AC=p.I4.div(rN(),hW,e=>{let{$hasSpacing:t}=e;return t?"".concat(h_(.25)," 0"):"0"},e=>{let{$isClickable:t,$isDisabled:n}=e;return n?"not-allowed":t?"pointer":"inherit"},e=>{let{$hasHoverState:t,$isSelected:n,$appearance:r}=e;return t&&!n&&(0,p.AH)(rW(),Ax,uv(Ah[r].highlighted))}),Av=(0,M.forwardRef)((e,t)=>{var{children:n,isInteractive:r=!1,isHighlighted:i=!1,isDisabled:o=!1,isSelected:l=!1,hasSpacing:a=!0,gap:s="sm",appearance:u}=e,c=sJ(e,["children","isInteractive","isHighlighted","isDisabled","isSelected","hasSpacing","gap","appearance"]);let d="default";o?d="disabled":l?d="selected":i&&(d="highlighted");let p=j8(),g=u||p;return(0,h.jsx)(AC,Object.assign({ref:t,$hasHoverState:r&&!o,$isSelected:l,$isClickable:(r||!!c.onClick)&&!o,$isDisabled:o,$hasSpacing:a,$appearance:g},c,{children:(0,h.jsx)(Ax,{$state:d,$appearance:g,$gap:s,children:n})}))}),Aj=e=>{let{shouldFillSpace:t=!1,button:n}=e;return(0,h.jsx)(Am,{$shouldFillSpace:t,children:n})},AA=e=>{var{icon:t,hasEmphasis:n=!1}=e,r=sJ(e,["icon","hasEmphasis"]);return(0,h.jsx)(Af,Object.assign({$hasEmphasis:n},r,{children:t}))},Aw=e=>{let{shouldFillSpace:t=!1,children:n}=e;return(0,h.jsx)(Ag,{$shouldFillSpace:t,children:n})},Ak="titleSmaller",AP=p.I4.span(rK(),m8[Ak]),AS=e=>{let{buttonBefore:t,buttonAfter:n,iconBefore:r,contentAfter:i,children:o,hasSpacing:l}=e;return(0,h.jsxs)(Av,{hasSpacing:l,children:[t&&(0,h.jsx)(Aj,{button:t}),r&&(0,h.jsx)(AA,{icon:r}),(0,h.jsx)(Aw,{shouldFillSpace:!0,children:(0,h.jsx)(AP,{children:o})}),n&&(0,h.jsx)(Aj,{button:n}),i&&(0,h.jsx)(Aw,{children:i})]})},AL=e=>{let{element:t,isDisabled:n,onSelect:r}=e,i=function(){let[,e]=(0,M.useState)(Object.create(null));return(0,M.useCallback)(()=>{e(Object.create(null))},[])}(),{registerDescendant:o,unregisterDescendant:l,descendants:a}=(0,M.useContext)(j3),s=a.findIndex(e=>e.element===t),u=g8(a),c=a.some((e,t)=>{var n;return e.element!==(null==(n=null==u?void 0:u[t])?void 0:n.element)});return(0,M.useLayoutEffect)(()=>{t||i()},[t,i]),(0,M.useLayoutEffect)(()=>(t&&o({element:t,index:s,isDisabled:n,onSelect:r}),()=>{t&&l(t)}),[s,o,c,l,t,r,n]),s},AM=function(){let{isActive:e,isSelected:t,isDisabled:n,onSelect:r,onMouseEnter:i,onMouseLeave:o}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{onItemSelect:l,selectionIndex:a,moveSelectionIndex:s,clearSelectionIndex:u,menuId:c,setDisableMouseEvents:d,shouldDisableMouseEvents:p}=An(),h=(0,M.useRef)(null),g=(0,M.useCallback)(e=>{n||(null==l||l(),null==r||r(),null==e||e.stopPropagation())},[r,l,n]),f=AL({isDisabled:n,element:h.current,onSelect:g});(0,M.useEffect)(()=>{t&&-1===a&&s(f)},[t,f,s,a]);let m=(0,M.useCallback)(e=>{n||p||(s(f),null==i||i(e))},[f,s,i,n,p]),y=(0,M.useCallback)(e=>{p||(u(),null==o||o(e))},[u,o,p]),b=(0,M.useCallback)(()=>{!n&&p&&(d(!1),s(f))},[n,f,s,d,p]),x=!!(e||-1!==a&&f===a&&!n);return{ownRef:h,menuItemId:j4(c,f),isHighlighted:x,handleSelect:g,handleMouseEnter:m,handleMouseLeave:y,handleMouseMove:b}},AO=e=>{var{onClick:t}=e,n=sJ(e,["onClick"]);let{menuItemId:r,ownRef:i,handleSelect:o,handleMouseEnter:l,handleMouseLeave:a,handleMouseMove:s}=AM({onSelect:t});return(0,h.jsx)(vK,Object.assign({},n,{ref:i,id:r,onClick:o,onMouseEnter:l,onMouseLeave:a,onMouseMove:s}))},AT=e=>{let{shouldFillSpace:t=!1,input:n}=e;return(0,h.jsx)(Am,{$shouldFillSpace:t,children:n})},AD=e=>{var{shouldFillSpace:t=!0,label:n,description:r,variant:i="default"}=e,o=sJ(e,["shouldFillSpace","label","description","variant"]);return(0,h.jsxs)(Ag,Object.assign({$shouldFillSpace:t},o,{children:[(0,h.jsx)(Ay,{title:"string"==typeof n?n:"",$variant:i,children:n}),(0,h.jsx)(Ab,{children:r})]}))},AI={sm:h_(1),md:h_(1.25)},Az=p.I4.span(rZ(),e=>{let{$variant:t}=e;return m8[t]}),AE=p.I4.div(rX(),e=>{let{width:t}=e;return t}),AH=p.I4.div(rQ(),e=>{let{$variant:t,$lastLineWidth:n}=e;return(0,p.AH)(r_(),sN[t],hK,sW[t],sz.md,n)}),AV=p.I4.div(rJ());p.I4.div(rq(),AV,Az,Az,AV,e=>{let{size:t}=e;return AI[t]});let AF=e=>{var{numLines:t=1,variant:n="body",lineWidth:r="33%"}=e,i=sJ(e,["numLines","variant","lineWidth"]);let o=t>1,l=o?r:"100%";return(0,h.jsx)(AE,Object.assign({width:o?"100%":r,"aria-hidden":!0},i,{children:Array(t).fill("").map((e,t)=>(0,h.jsx)(AH,{$variant:n,$lastLineWidth:l},t))}))},AB=e=>{let{shouldFillSpace:t=!0,hasDescription:n,lineWidth:r="40%"}=e;return(0,h.jsx)(AD,{shouldFillSpace:t,label:(0,h.jsx)(AF,{lineWidth:r}),description:n?(0,h.jsx)(AF,{variant:"caption",lineWidth:"70%"}):void 0})},AR=(0,p.I4)(Ag)(r$(),h_(1),h_(1),h_(.5)),AY=p.I4.div(r1(),m3,h0,uv("textSecondary")),AG=p.I4.div(r0(),h_(-1),h_(-1.5)),AU=e=>{let{title:t,control:n}=e;return(0,h.jsxs)(AR,{$shouldFillSpace:!0,children:[(0,h.jsx)(AY,{children:t}),(0,h.jsx)(AG,{children:n})]})},AW=()=>(0,h.jsx)(Av,{children:(0,h.jsx)(Aw,{shouldFillSpace:!0,children:(0,h.jsx)(AF,{variant:Ak})})}),AN=p.I4.div(r2(),h0,uv("textSecondary")),AK=p.I4.div(r5(),uv("grey70"),h_(.5),h_(1)),AZ=M.forwardRef((e,t)=>{var{appearance:n,iconBefore:r,iconAfter:i,textAfter:o,buttonAfter:l,description:a,children:s,"aria-label":u,isActive:c,isDisabled:d,isSelected:p,onMouseEnter:g,onMouseLeave:f,onSelect:m,role:y="menuitem",shouldAutoHideDescription:b=!1}=e,x=sJ(e,["appearance","iconBefore","iconAfter","textAfter","buttonAfter","description","children","aria-label","isActive","isDisabled","isSelected","onMouseEnter","onMouseLeave","onSelect","role","shouldAutoHideDescription"]);let{menuItemId:C,isHighlighted:v,ownRef:j,handleSelect:A,handleMouseEnter:w,handleMouseLeave:k,handleMouseMove:P}=AM({onSelect:m,onMouseEnter:g,onMouseLeave:f,isActive:c,isDisabled:d,isSelected:p}),S=!b||v;return(0,h.jsxs)(Av,Object.assign({appearance:n,hasSpacing:!1,"aria-label":u,"aria-disabled":d||void 0,isHighlighted:v,isDisabled:d,"aria-selected":!!p,onClick:A,onMouseEnter:w,onMouseLeave:k,onMouseMove:P,id:C,ref:g4([j,t]),role:y},x,{children:[r&&(0,h.jsx)(AA,{icon:r}),(0,h.jsx)(AD,{label:s,description:S?a:void 0}),o&&(0,h.jsx)(Aw,{children:(0,h.jsx)(AN,{children:o})}),i&&(0,h.jsx)(AA,{icon:i}),l&&v&&(0,h.jsx)(Aj,{button:l})]}))}),AX=()=>(0,h.jsx)(AK,{}),A_=e=>{let{hasDescription:t}=e;return(0,h.jsx)(Av,{children:(0,h.jsx)(AB,{hasDescription:t})})},AQ={sm:{width:"16em",maxHeight:"35em"},md:{width:"26em",maxHeight:"35em"},lg:{width:"32.8em",maxHeight:"60em"}},AJ=(0,p.I4)(ed.P.div)(r7(),e=>{let{$size:t,$hasMaxWidth:n,$hasMaxHeight:r,$shouldFitContent:i}=e,{width:o,maxHeight:l}=AQ[t];return(0,p.AH)(r3(),!i&&"min-width: ".concat(o),n?o:"none",r?l:"none")});p.I4.div(r9(),h_(2),uv("textSecondary"));let Aq=p.I4.div(r4(),h_(.75),h_(1));p.I4.div(r6(),h_(1),h_(1),h_(.75),h_(1),Aq);let A$=p.I4.div(r8(),h_(.75),h_(1),h_(.25),h_(1)),A1=e=>{var{title:t,onClose:n}=e,r=sJ(e,["title","onClose"]);return(0,h.jsx)(A$,{children:(0,h.jsx)(AS,Object.assign({buttonAfter:(0,h.jsx)(vK,{"aria-label":"Close",variant:"subtle",iconBefore:(0,h.jsx)(x5,{}),onClick:n})},r,{children:t}))})},A0=e=>{var{children:t,hasInitialPosition:n,hasMaxHeight:r=!0,hasMaxWidth:i=!1,isOpen:o,onClose:l,shouldAutoFocus:a=!0,shouldFitContent:s=!1,size:u="md",focusLockProps:c,headerProps:d,title:p}=e,g=sJ(e,["children","hasInitialPosition","hasMaxHeight","hasMaxWidth","isOpen","onClose","shouldAutoFocus","shouldFitContent","size","focusLockProps","headerProps","title"]);let f=(0,M.useRef)(null);(0,M.useEffect)(()=>{var e;a&&n&&(null==(e=f.current)||e.focus())},[a,n]);let m=(0,M.useCallback)(e=>{"Escape"===e.key&&(null==l||l())},[l]),y=!!(d||p);return(0,h.jsx)(j5,Object.assign({},c,{shouldReturnFocus:!1,isDisabled:!a,children:(0,h.jsxs)(AJ,{$hasMaxHeight:r,$hasMaxWidth:i,onKeyDown:m,$shouldFitContent:s,$size:u,children:[y?(0,h.jsx)(A1,Object.assign({title:p,onClose:l},d)):null,(0,h.jsx)(Aq,{children:(0,h.jsx)(Al,Object.assign({ref:f},g,{appearance:"popover",children:t}))})]})}))},A2=e=>{var{anchorElement:t,isOpen:n,isWithinPortal:r,label:i,variant:o,offset:l=[0,4],onClose:a,placement:s="bottom-start",shouldAutoClose:u=!0,popperRef:c}=e,d=sJ(e,["anchorElement","isOpen","isWithinPortal","label","variant","offset","onClose","placement","shouldAutoClose","popperRef"]);let p=(0,M.useCallback)(()=>{u&&(null==a||a())},[u,a]);return(0,h.jsx)(jb,{isOpen:n,onClose:a,anchorElement:t,offset:l,placement:s,label:i,variant:o,isWithinPortal:r,ref:c,children:(0,h.jsx)(A0,Object.assign({},d,{isOpen:n,onClose:a,onItemSelect:p}))})},A5=p.I4.div(ie()),A3=e=>{let{label:t,description:n,option:r,onSelect:i,isSelected:o,renderItem:l}=e;return l({menuItemProps:{onSelect:(0,M.useCallback)(()=>{null==i||i(r)},[i,r]),isSelected:o,role:"option"},label:t,option:r,description:n})},A7=e=>{let{menuItemProps:t,label:n,description:r}=e;return(0,h.jsx)(AZ,Object.assign({},t,{description:r,children:n}))},A9=M.forwardRef((e,t)=>{var{options:n,getOptionValue:r,getOptionLabel:i,getOptionDescription:o,onBlur:l,onChange:a,menuTitle:s,asyncProps:u,isRequired:c,isDisabled:d,isLoading:p,isWithinPortal:g,value:f,renderInner:m,shouldFitContainer:y=!1,shouldFitContent:b,shouldAutoFocus:x,shouldAutoClose:C,renderItem:v=A7,menuProps:j,hasError:A,contextMenuProps:w,tooltip:k}=e,P=sJ(e,["options","getOptionValue","getOptionLabel","getOptionDescription","onBlur","onChange","menuTitle","asyncProps","isRequired","isDisabled","isLoading","isWithinPortal","value","renderInner","shouldFitContainer","shouldFitContent","shouldAutoFocus","shouldAutoClose","renderItem","menuProps","hasError","contextMenuProps","tooltip"]);let{closeMenu:S,openMenu:L,isOpen:O,setMenuAnchor:T,contextMenuProps:D,menuTriggerAttributes:I,menuAnchor:z}=function(){let{menuRole:e="menu"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,M.useId)(),[n,r]=(0,M.useState)(null),[i,o]=(0,M.useState)(!1);return(0,M.useMemo)(()=>{let l=()=>o(!1),a=Object.assign({"aria-haspopup":e},i&&{"aria-expanded":!0,"aria-controls":t});return{openMenu:()=>o(!0),closeMenu:l,toggleMenu:()=>o(e=>!e),isOpen:i,menuTriggerAttributes:a,menuAnchor:n,setMenuAnchor:r,contextMenuProps:{id:t,role:e,anchorElement:n,isOpen:i,onClose:l}}},[t,n,i,e])}({menuRole:"listbox"}),E=Object.assign(Object.assign({},w),D),H=()=>{L()},V=()=>{S(),null==l||l()};(0,M.useImperativeHandle)(t,()=>({open:H,close:V,focus:()=>{z instanceof HTMLElement&&z.focus()}}));let F=(0,h.jsx)(A5,Object.assign({},I,{role:"combobox","aria-required":c,"aria-disabled":d,onClick:()=>{O?S():L()},onKeyDown:e=>{"Enter"===e.key&&L()},ref:T,tabIndex:0,"aria-invalid":A},P));return(0,h.jsxs)(h.Fragment,{children:[k?(0,h.jsx)(jd,Object.assign({},k,{children:F})):F,(0,h.jsx)(A2,Object.assign({},j,{isWithinPortal:g,shouldFitContent:b,shouldFitContainer:y,renderInner:m},E,{onClose:V,children:n.map((e,t)=>{let n=r(e),l=i(e),s=o(e);return(0,h.jsx)(A3,{isSelected:n===f,option:e,onSelect:a,label:l,description:s,renderItem:v},t)})}))]})}),A4={default:{backgroundColor:"grey80",backgroundColorHovered:"grey80",borderColor:"grey70",borderColorHovered:"grey60",borderColorError:"alert"},subtle:{backgroundColor:"transparent",backgroundColorHovered:"grey80",borderColor:"transparent",borderColorHovered:"transparent",borderColorError:"transparent"},alternative:{backgroundColor:"grey90",backgroundColorHovered:"grey90",borderColor:"grey90",borderColorHovered:"grey90",borderColorError:"alert"},grey80:{backgroundColor:"grey80",backgroundColorHovered:"grey80",borderColor:"grey80",borderColorHovered:"grey80",borderColorError:"alert"},"grey100-border":{backgroundColor:"grey100",backgroundColorHovered:"grey95",borderColor:"grey80",borderColorHovered:"grey80",borderColorError:"alert"}},A6=e=>d1(e,"label")&&d$(e,"value"),A8=e=>A6(e)?e.label:"",we=e=>{if(A6(e))return e.value;throw Error("Invalid select option. Must contain `value` or a custom `getOptionValue` method")},wt=e=>A6(e)?e.description:void 0,wn=p.I4.select(it()),wr="[placeholder]",wi=(0,M.forwardRef)((e,t)=>{var{value:n,onChange:r,onBlur:i,isDisabled:o,isRequired:l,options:a,getOptionValue:s,getOptionLabel:u,selectPlaceholder:c,hasError:d}=e,p=sJ(e,["value","onChange","onBlur","isDisabled","isRequired","options","getOptionValue","getOptionLabel","selectPlaceholder","hasError"]);return(0,h.jsxs)(wn,Object.assign({},p,{value:String(n)||wr,onChange:e=>{let t=e.target.value,n=a.find(e=>s(e)===t);n&&r&&r(n)},disabled:o,required:l,onBlur:i,"aria-invalid":d,ref:t,children:[(0,h.jsx)("option",{disabled:!0,value:wr,children:c}),a.map((e,t)=>{let n=s(e),r=u(e);return(0,h.jsx)("option",{value:String(n),children:r},t)})]}))}),wo=p.I4.div(ii(),e=>{let{$isDisabled:t,$shouldFitContainer:n,$shouldFitContent:r,$variant:i,$hasError:o}=e,l=A4[i],a=uv(l.backgroundColor),s=uv(l.backgroundColorHovered),u=uv(o?l.borderColorError:l.borderColorHovered),c=uv(o?l.borderColorError:l.borderColor);return(0,p.AH)(ir(),sX,t?.5:1,a,sz.md,c,n?"initial":"28em",r?"auto":"10em",t?"none":"auto",sR.subtle,n&&!r?"100%":"auto",h_(4),h_(1),h_(.5),h_(1),s,u,u)}),wl=p.I4.div(io()),wa=p.I4.div(il()),ws=p.I4.div(ia(),m1,e=>{let{$isPlaceholder:t}=e;return t?.5:1},uv("textPrimary")),wu=p.I4.div(is(),m3,uv("textSecondary")),wc=p.I4.div(iu()),wd=p.I4.div(ic(),uv("textDisabled")),wp=(0,M.forwardRef)(function(e,t){var{children:n,label:r,description:i,shouldFitContainer:o=!1,shouldFitContent:l=!1,variant:a="default",hasError:s,isDisabled:u,isLoading:c,iconBefore:d,isPlaceholder:p}=e,g=sJ(e,["children","label","description","shouldFitContainer","shouldFitContent","variant","hasError","isDisabled","isLoading","iconBefore","isPlaceholder"]);return(0,h.jsxs)(wo,Object.assign({},g,{$isDisabled:u||c,$hasError:s,$shouldFitContainer:o,$shouldFitContent:l,$variant:a,role:"button",ref:t,children:[(0,h.jsxs)(h.Fragment,c?{children:[(0,h.jsx)(wl,{children:(0,h.jsx)(xM,{variant:"muted"})}),(0,h.jsx)(wc,{})]}:{children:[d&&(0,h.jsx)(wl,{children:d}),(0,h.jsxs)(wa,{children:[(0,h.jsx)(ws,{$isPlaceholder:p,children:r}),i&&(0,h.jsx)(wu,{children:i})]})]}),(0,h.jsx)(wd,{children:(0,h.jsx)(x0,{size:"xs"})}),n]}))}),wh=(0,M.forwardRef)((e,t)=>{var{getOptionLabel:n=A8,getOptionValue:r=we,getOptionDescription:i=wt,isDisabled:o,isLoading:l,isRequired:a,menuTitle:s,onChange:u,options:c=[],placeholder:d="Select an item",placeholderDescription:p,renderItem:g,renderValue:f=n,value:m,onBlur:y,id:b,disableNativeSelect:x,renderInner:C,menuProps:v,"aria-label":j,"aria-describedby":A,"aria-labelledby":w,isWithinPortal:k,shouldAutoSelectFirstOption:P=!1,shouldAutoOpen:S=!1,shouldFitContainer:L=!0,hasError:O,shouldFitContent:T,contextMenuProps:D,asyncProps:I,renderCustomControl:z,controlAriaLabel:E,tooltip:H,showDescriptionInControl:V=!0}=e,F=sJ(e,["getOptionLabel","getOptionValue","getOptionDescription","isDisabled","isLoading","isRequired","menuTitle","onChange","options","placeholder","placeholderDescription","renderItem","renderValue","value","onBlur","id","disableNativeSelect","renderInner","menuProps","aria-label","aria-describedby","aria-labelledby","isWithinPortal","shouldAutoSelectFirstOption","shouldAutoOpen","shouldFitContainer","hasError","shouldFitContent","contextMenuProps","asyncProps","renderCustomControl","controlAriaLabel","tooltip","showDescriptionInControl"]);let{isMobile:B}=h3(),R=B&&!x,{menuSelectRef:Y,nativeSelectRef:G}=(e=>{let{ref:t,shouldAutoOpen:n,hasOptions:r}=e,i=(0,M.useRef)(null),o=(0,M.useRef)(null);return(0,M.useImperativeHandle)(t,()=>({focus:()=>{var e,t;null==(e=i.current)||e.focus(),null==(t=o.current)||t.focus()},close:()=>{var e,t;null==(e=i.current)||e.blur(),null==(t=o.current)||t.close()},open:()=>{var e,t;null==(e=i.current)||e.focus(),null==(t=o.current)||t.open()}})),(0,M.useEffect)(()=>{var e,t;n&&r&&(null==(e=i.current)||e.focus(),null==(t=o.current)||t.open())},[r,n]),{menuSelectRef:o,nativeSelectRef:i}})({ref:t,shouldAutoOpen:S,hasOptions:!!c.length});(e=>{let{options:t,value:n,onChange:r,shouldAutoSelectFirstOption:i}=e;(0,M.useEffect)(()=>{let[e]=t;if(!i||n||void 0===e)return;let o=setTimeout(()=>null==r?void 0:r(e),0);return()=>clearTimeout(o)},[r,t,i,n])})({options:c,value:m,onChange:u,shouldAutoSelectFirstOption:P});let U=m?f(m):d,W=m?i(m):p,N=m?r(m):void 0,K=Object.assign({label:U,description:V?W:void 0,isDisabled:o,shouldFitContent:T,isLoading:l,hasError:O,shouldFitContainer:L,isPlaceholder:!m,"aria-label":E},F),Z=(0,M.useCallback)(()=>R?(0,h.jsx)(wi,{ref:G,isRequired:a,options:c,value:N,onChange:u,onBlur:y,isDisabled:o,getOptionValue:r,getOptionLabel:n,id:b,"aria-describedby":A,selectPlaceholder:d,hasError:O}):(0,h.jsx)(A9,{contextMenuProps:D,menuTitle:s,shouldFitContainer:L,ref:Y,shouldAutoFocus:P,menuProps:v,isRequired:a,isDisabled:o,options:c,asyncProps:I,shouldFitContent:T,value:N,onChange:u,onBlur:y,isLoading:l,getOptionValue:r,getOptionLabel:n,getOptionDescription:i,renderItem:g,renderInner:C,"aria-labelledby":w,"aria-describedby":A,"aria-label":j,isWithinPortal:k,hasError:O,tooltip:H}),[A,j,w,I,D,i,n,r,O,b,o,l,a,k,v,Y,s,G,y,u,c,d,C,g,N,P,L,T,R,H]);return z?(0,h.jsx)(h.Fragment,{children:z(Object.assign(Object.assign({},K),{renderMenuSelect:Z}))}):(0,h.jsx)(wp,Object.assign({},K,{children:Z()}))}),wg=h_(1),wf=h_(1),wm=h_(2),wy=p.I4.div(ip(),e=>{let{$hasError:t,$isDisabled:n,$variant:r,$hasIconAfter:i,$hasIconBefore:o,$size:l}=e,a=i?"calc(var(--input-padding-x) + ".concat(xj.sm," + ").concat(h_(1),")"):"var(--input-padding-x)",s=o?"calc(var(--input-padding-x) + ".concat(xj.sm," + ").concat(h_(1),")"):"var(--input-padding-x)";return(0,p.AH)(id(),hW,v6({hasError:t,isDisabled:n,variant:r}),a,s,wC[l])}),wb=p.I4.input(ig(),e=>{let{$alignment:t,$hasError:n,$isDisabled:r,$variant:i}=e;return(0,p.AH)(ih(),v4({isDisabled:r}),v8({isDisabled:r,variant:i}),"center"===t?"center":"left")}),wx=p.I4.span(iy(),e=>{let{$position:t}=e;return(0,p.AH)(im(),t)});p.I4.div(ib(),hK,sz.md,e=>{let{$size:t}=e;return wC[t]});let wC={sm:(0,p.AH)(ix(),wg,h_(3)),md:(0,p.AH)(iC(),wf,h_(4)),lg:(0,p.AH)(iv(),wm,h_(6))},wv=(0,M.forwardRef)((e,t)=>{var{alignment:n="left",iconAfter:r,iconBefore:i,hasError:o=!1,isDisabled:l=!1,size:a="md",isRequired:s,variant:u="default"}=e,c=sJ(e,["alignment","iconAfter","iconBefore","hasError","isDisabled","size","isRequired","variant"]);let d=(0,M.useRef)(null),p=g4([t,d]),g={$alignment:n,$hasIconAfter:!!r,$hasIconBefore:!!i,$size:a,$hasError:o,$isDisabled:l,$variant:u};return(0,h.jsxs)(wy,Object.assign({},g,{onClick:e=>{var t;null==(t=d.current)||t.focus()},children:[(0,h.jsx)(wx,{$position:"left",children:i}),(0,h.jsx)(wb,Object.assign({},g,{"aria-invalid":o,disabled:l,ref:p,required:s,onKeyDown:e=>{var t;"Enter"===e.key&&e.currentTarget.blur(),null==(t=null==c?void 0:c.onKeyDown)||t.call(c,e)}},c)),(0,h.jsx)(wx,{$position:"right",children:r})]}))});wv.displayName="Input";let wj=p.I4.div(ij(),m9,uv("textSecondary"),h_(.5)),wA=e=>{let{label:t,input:n}=e;return(0,h.jsxs)("div",{children:[(0,h.jsx)(wj,{children:t}),n]})};function ww(e){let{yAxisProperties:t,palette:n,propertyKey:r}=e,i=t.findIndex(e=>e.key===r);return -1!==i?n[i%n.length]:void 0}let wk=p.I4.div(iA(),hW),wP=e=>{let{propertyKey:t,palette:n,yAxisProperties:r,fallbackComponent:i=null,size:o}=e,l=ww({yAxisProperties:r,palette:n,propertyKey:t});if(!l)return i;let a=o&&xj[o];return(0,h.jsx)(wk,{style:{backgroundColor:l,width:a,height:a}})},wS=p.I4.div(iw(),hW,h_(.5)),wL=p.I4.div(ik(),h_(.5),h_(.75),uL,uv("grey80"),uM,uv("grey85"),sz.md,h_(3.2),h_(.24)),wM=p.I4.div(iP(),m$,su.medium,h_(.75)),wO=p.I4.div(iS(),hW,s_.popover,uL,uv("grey85"),uM,uv("grey100"),sz.lg,uv("textPrimary")),wT=p.I4.div(iL(),uv("overlayBackground"),sz.lg,sE.md,h_(1),sH(uv("overlayBorderGradient"),1,"lg")),wD=p.I4.div(iM(),hW,h_(.5)),wI=p.I4.div(iO()),wz=p.I4.button(iT(),m$,su.medium,sz.md,h_(.5),h_(.6),uL,uv("grey75"),uM,uv("grey80"),uL,uv("grey75"),uM,uv("grey75")),wE=p.I4.div(iD(),h_(1.4),h_(.5),h_(10)),wH=e=>{let{initialValue:t,onChange:n,options:r,elementsPerRow:i=3,name:o}=e,l=(0,M.useId)(),a=null==r?void 0:r.map(e=>({label:e,value:e,renderIcon:()=>(0,h.jsx)(jD,{palette:[e],maxColors:1,size:"sm"})}));return(0,h.jsx)(wD,{$elementsPerRow:i,role:"radiogroup","aria-label":null!=o?o:"color-selector-".concat(l),children:a.map(e=>{var r;let i=e.value===t;return(0,h.jsxs)(wz,{type:"button",role:"radio","aria-checked":i,"aria-label":null!=(r=e.label)?r:e.value,onClick:()=>{n(e.value)},onKeyDown:t=>((e,t)=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),n(t))})(t,e.value),tabIndex:0,children:[e.renderIcon&&(0,h.jsx)(wI,{children:null==e?void 0:e.renderIcon()}),e.label&&(0,h.jsx)(wE,{children:e.label})]},e.value)})})};p.I4.div(iz(),hW,e=>{let{$hasError:t,$variant:n,$isFocused:r}=e;return v6({variant:n,hasError:t,isFocused:r})},h_(1),h_(.6),h_(1),uv("textPrimary"),e=>{let{$isDisabled:t}=e;return t&&(0,p.AH)(iI())});let wV=p.I4.div(iE(),hW,e=>{let{$hasError:t,$variant:n,$isFocused:r}=e;return v6({variant:n,hasError:t,isFocused:r})},h_(.6),h_(1)),wF=p.I4.input(iV(),e=>{let{$isDisabled:t}=e;return v4({isDisabled:t})},e=>{let{$hasError:t,$variant:n,$isFocused:r}=e;return v8({variant:n})},uv("textPrimary"),e=>{let{$isDisabled:t}=e;return t&&(0,p.AH)(iH())});p.I4.div(iF(),uv("grey70")),p.I4.span(iB(),m1);let wB=p.I4.div(iR(),h_(1)),wR=(0,p.I4)(eb.h)(iY(),sz.md,uv("grey90")),wY=(0,p.I4)(ex.t)(iG()),wG=(0,p.I4)(eC.hB)(iU(),sz.sm,uv("grey90")),wU=(0,p.I4)(ev.a)(iW(),uv("white"),sE.sm);p.I4.div(iN(),hW,s_.popover,uv("grey100"),sz.md,sE.md,uv("grey90"),uv("textPrimary")),p.I4.div(iK(),h_(1),h_(1.5)),p.I4.div(iZ(),m3,uv("textPrimary"));let wW=e=>{let{initialValue:t,onChange:n,onEnterPress:r}=e,[i,o]=(0,M.useState)((0,eA.H0)(null!=t?t:"#af9af7").toFormat("hsb")),[l,a]=(0,M.useState)((0,eA.H0)(null!=t?t:"#af9af7").toString("hex"));return(0,h.jsx)(ew.sk,{value:i,onChange:e=>{o(e),a(e.toString("hex")),n(e.toString("hex"))},children:(0,h.jsxs)(wB,{children:[(0,h.jsx)(wR,{colorSpace:"hsb",xChannel:"saturation",yChannel:"brightness",children:(0,h.jsx)(wU,{})}),(0,h.jsx)(wY,{colorSpace:"hsb",channel:"hue",children:(0,h.jsx)(wG,{children:(0,h.jsx)(wU,{})})}),(0,h.jsx)(wV,{children:(0,h.jsx)(wF,{placeholder:"#000000",value:l,onChange:e=>{a(e.target.value);try{let t=e.target.value.trim();t.startsWith("#")||(t="#".concat(t));let r=(0,eA.H0)(t);o(r),n(r.toString("hex"))}catch(e){}},onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),e.stopPropagation(),r())},onKeyDownCapture:e=>{"Backspace"===e.key&&e.stopPropagation()},autoFocus:!0})})]})})},wN=e=>{let{label:t,value:n,onChange:r,options:i=[],children:o}=e,l=e=>{null==r||r(e)},[a,s]=(0,M.useState)(!1),u=i.length>0;return(0,h.jsxs)(eO.bL,{open:a,onOpenChange:e=>{s(e=>!e)},children:[(0,h.jsxs)(wS,{children:[(0,h.jsx)(eO.l9,{children:(0,h.jsxs)(wL,{children:[(0,h.jsx)(jD,{palette:[null!=n?n:"transparent"],maxColors:1,size:"sm"}),(0,h.jsx)(x0,{size:"xs"})]})}),(0,h.jsx)(wM,{children:t}),o]}),(0,h.jsx)(eO.ZL,{children:(0,h.jsx)(mf,{children:(0,h.jsx)(wO,{as:eO.UC,align:"start",side:"left",sideOffset:hX(1),children:(0,h.jsx)(wT,{children:u?(0,h.jsx)(wH,{options:i,initialValue:n,onChange:l}):(0,h.jsx)(wW,{initialValue:n,onChange:l,onEnterPress:()=>{s(!1)}})})})})})]})},wK=e=>{let t=function(){let[,e]=(0,M.useState)(0);return(0,M.useCallback)(()=>e(e=>e+1),[])}();return(0,M.useEffect)(()=>{let n=()=>{t()};return null==e||e.on("transaction",n),()=>{null==e||e.off("transaction",n)}},[e,t]),e},wZ=/(?:(?:(?:https?|ftp):)?\/\/)?(?:\S+(?::\S*)?@)?(?:(?:[\da-z\u00A1-\uFFFF][\w\u00A1-\uFFFF-]{0,62})?[\da-z\u00A1-\uFFFF]\.)+[a-z\u00A1-\uFFFF]{2,}\.?(?::\d{2,5})?(?:[#/?]\S*)?/gi,wX=e=>{let{editor:t,onClose:n}=e,r=(0,Z.s9)();wK(t);let i=(0,M.useRef)(null),o=t.getAttributes("link").href;return(0,M.useEffect)(()=>{var e,t;null==(e=i.current)||e.focus(),null==(t=i.current)||t.select()},[]),(0,h.jsx)(ek.l,{"aria-label":r("graph.toolbar.link.ariaLabel"),onSubmit:e=>{var r;e.preventDefault();let i=null!=(r=new FormData(e.currentTarget).get("href"))?r:"",l=t.state.selection.to;!i&&o?t.chain().unsetLink().setTextSelection(l).focus().run():i.match(wZ)?t.chain().setLink({href:i,target:"_blank"}).setTextSelection(l).focus().run():t.chain().setTextSelection(l).focus().run(),n()},children:(0,h.jsxs)(je,{children:[(0,h.jsx)(eP.A,{name:"href",autoFocus:!0,children:(0,h.jsx)(jt,{ref:i,placeholder:r("graph.toolbar.link.placeholder"),defaultValue:null!=o?o:""})}),(0,h.jsx)(vK,{horizontalPadding:"sm",verticalPadding:"sm",title:r("graph.toolbar.link.submit"),iconBefore:(0,h.jsx)(xU,{}),variant:"subtle",type:"submit"})]})})},w_=e=>e.state.selection.empty?e.chain().focus().selectAll():e.chain().focus(),wQ=e=>{let{editor:t,inheritedFont:n,fonts:r}=e,i=(0,Z.s9)(),o=t.getAttributes("textStyle").font,l=r.find(e=>!!o&&e.id===o.id);return l||(l=r.find(e=>(null==e?void 0:e.id)===n)),l||(l=r[0]),(0,h.jsx)(wh,{variant:"subtle",options:r,value:l,onChange:e=>{e.id===n?w_(t).unsetFont().run():w_(t).setFont(e).run()},shouldFitContent:!0,renderValue:e=>(0,h.jsx)(wq,{children:function(e){switch(e){case da.enum.fresh:return(0,h.jsx)(x7,{});case da.enum.timeless:return(0,h.jsx)(x3,{});case da.enum.modern:return(0,h.jsx)(x9,{});case da.enum.technical:return(0,h.jsx)(x4,{});case da.enum.fineliner:return(0,h.jsx)(x8,{});case da.enum.brand:default:return(0,h.jsx)(x7,{})}}(e.id)}),renderItem:wJ,getOptionValue:e=>e.id,tooltip:{label:i("graph.toolbar.font.label"),hasInvertedTheme:!1}})},wJ=e=>{let{menuItemProps:t,option:n}=e;return(0,h.jsx)(AZ,Object.assign({},t,{children:(0,h.jsx)("span",{style:{fontFamily:dk(n.fontFamily)},children:n.label})}))},wq=p.I4.div(iX()),w$=p.I4.div(i_(),hW),w1=p.I4.span(iQ(),m_),w0=p.I4.span(iJ(),mQ),w2=p.I4.span(iq(),mJ),w5=p.I4.span(i$(),m3),w3=p.I4.span(i1(),m1),w7=e=>{var t;let{editor:n}=e,r=(0,Z.s9)(),i={value:null,label:r("graph.toolbar.heading.text")},o=[{value:6,label:r("graph.toolbar.heading.caption")},i,{value:3,label:r("graph.toolbar.heading.heading3")},{value:2,label:r("graph.toolbar.heading.heading2")},{value:1,label:r("graph.toolbar.heading.heading1")}],l=null!=(t=o.find(e=>n.isActive("heading",{level:e.value})))?t:i;return(0,h.jsx)(wh,{variant:"subtle",options:o,value:l,onChange:e=>{null===e.value?n.chain().focus().setParagraph().run():n.chain().focus().toggleHeading({level:e.value}).run()},shouldFitContent:!0,renderValue:e=>e.label,renderItem:e=>{let{menuItemProps:t,option:n,label:r,description:i}=e;return(0,h.jsx)(AZ,Object.assign({},t,{description:i,children:(0,h.jsxs)(w$,{children:[1===n.value&&(0,h.jsx)(w1,{children:r}),2===n.value&&(0,h.jsx)(w0,{children:r}),3===n.value&&(0,h.jsx)(w2,{children:r}),6===n.value&&(0,h.jsx)(w5,{children:r}),null===n.value&&(0,h.jsx)(w3,{children:r})]})}))},tooltip:{label:r("graph.toolbar.heading.label"),hasInvertedTheme:!1}})},w9=e=>{let{editor:t}=e,n=(0,Z.s9)(),r=e=>n=>{let r=t.state.selection;t.chain().focus().setTextAlign(e).setTextSelection(r).run(),n.preventDefault()};return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(jd,{label:n("graph.toolbar.textAlign.left"),hasInvertedTheme:!1,children:(0,h.jsx)(vK,{variant:"subtle",iconBefore:(0,h.jsx)(xW,{}),isSelected:t.isActive({textAlign:"left"}),onMouseDown:r("left")})}),(0,h.jsx)(jd,{label:n("graph.toolbar.textAlign.center"),hasInvertedTheme:!1,children:(0,h.jsx)(vK,{variant:"subtle",iconBefore:(0,h.jsx)(xN,{}),isSelected:t.isActive({textAlign:"center"}),onMouseDown:r("center")})}),(0,h.jsx)(jd,{label:n("graph.toolbar.textAlign.right"),hasInvertedTheme:!1,children:(0,h.jsx)(vK,{variant:"subtle",iconBefore:(0,h.jsx)(xK,{}),isSelected:t.isActive({textAlign:"right"}),onMouseDown:r("right")})})]})},w4=e=>{let{editor:t,seriesColorOptions:n,renderIcon:r,getColorStyles:i}=e,o=(0,Z.s9)(),l=t.getAttributes("textStyle").color,a=l&&l.trim()?l:"#000";return(0,h.jsx)(j2,{tooltip:o("graph.toolbar.color.label"),value:a,onChange:e=>{w_(t).setColor(e).run()},seriesColorOptions:n,renderIcon:r,getSwatchStyles:i})},w6=(0,M.forwardRef)(function(e,t){return(0,h.jsx)(vK,Object.assign({ref:t,variant:"subtle"},e))}),w8=(0,M.forwardRef)(function(e,t){let{ariaLabel:n,iconBefore:r,onClick:i,isSelected:o,supportedOptions:l,option:a}=e;return(null==l?void 0:l.includes(a))?(0,h.jsx)(w6,{ref:t,"aria-label":n,iconBefore:r,onMouseDown:e=>{e.preventDefault(),i()},isSelected:o}):null}),ke=e=>{let{editor:t,supportedOptions:n,onLinkClick:r,seriesColorOptions:i}=e,o=(0,Z.s9)();wK(t);let l=mr(),a=gU(e=>e.customAppearance.font);return(0,h.jsxs)(h.Fragment,{children:[n.includes("color")?(0,h.jsx)(w4,{editor:t,seriesColorOptions:i}):null,l&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(wQ,{editor:t,fonts:l,inheritedFont:dP(a).heading.fontId})," ",(0,h.jsx)(jr,{})]}),n.includes("heading")?(0,h.jsx)(w7,{editor:t}):null,(0,h.jsx)(jr,{}),(0,h.jsx)(w8,{option:"bold",supportedOptions:n,ariaLabel:o("graph.toolbar.formatting.bold"),iconBefore:(0,h.jsx)(xB,{}),onClick:()=>{t.chain().focus().toggleBold().run()},isSelected:t.isActive("bold")}),(0,h.jsx)(w8,{option:"italic",supportedOptions:n,ariaLabel:o("graph.toolbar.formatting.italic"),iconBefore:(0,h.jsx)(xR,{}),onClick:()=>{t.chain().focus().toggleItalic().run()},isSelected:t.isActive("italic")}),(0,h.jsx)(w8,{option:"underline",supportedOptions:n,ariaLabel:o("graph.toolbar.formatting.underline"),iconBefore:(0,h.jsx)(xY,{}),onClick:()=>{t.chain().focus().toggleUnderline().run()},isSelected:t.isActive("underline")}),(null==n?void 0:n.includes("textAlign"))?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(jr,{}),(0,h.jsx)(w9,{editor:t})]}):null,(0,h.jsx)(jr,{}),(0,h.jsx)(w8,{option:"link",supportedOptions:n,ariaLabel:o("graph.toolbar.formatting.link"),iconBefore:(0,h.jsx)(xG,{}),onClick:r,isSelected:t.getAttributes("link").href})]})};!function(e){e.OPTIONS="OPTIONS",e.LINK="LINK"}(s||(s={}));let kt=(0,M.forwardRef)((e,t)=>{var{editor:n,supportedOptions:r,seriesColorOptions:i,onClose:o}=e,l=sJ(e,["editor","supportedOptions","seriesColorOptions","onClose"]);let[a,u]=(0,M.useState)(s.OPTIONS);return(0,h.jsxs)(ji,Object.assign({ref:t},l,{children:[a===s.OPTIONS?(0,h.jsx)(ke,{editor:n,supportedOptions:r,onLinkClick:()=>{u(s.LINK)},seriesColorOptions:i}):null,a===s.LINK?(0,h.jsx)(wX,{editor:n,onClose:o}):null]}))});kt.displayName="ToolbarContent";let kn=["color","bold","italic","underline","textAlign","heading","link"],kr=e=>{let{editor:t,supportedOptions:n=kn,seriesColorOptions:r}=e,[i,o]=(0,M.useState)(!1),l=(0,M.useRef)(null);return(0,M.useEffect)(()=>{if(!t)return;let e=()=>o(!0),n=e=>{var t;let{event:n}=e,{relatedTarget:r,currentTarget:i}=n;i instanceof Node&&r instanceof Node&&(i.contains(r)||(null==(t=l.current)?void 0:t.contains(r)))||o(!1)};return t.on("focus",e),t.on("blur",n),()=>{t.off("focus",e),t.off("blur",n)}},[t]),(0,M.useEffect)(()=>{if(i){let e=e=>{var n;!(e.target instanceof Node&&e.target.isConnected)||(null==(n=l.current)?void 0:n.contains(e.target))||(null==t?void 0:t.view.dom.contains(e.target))||o(!1)};return window.addEventListener("mousedown",e),()=>{window.removeEventListener("mousedown",e)}}},[null==t?void 0:t.view.dom,i]),(0,M.useEffect)(()=>{function e(e){if(t&&t.isFocused&&"Escape"===e.key){let e=t.state.selection.to;t.chain().setTextSelection(e).focus().run()}}return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[t]),t&&i?(0,h.jsx)(kt,{editor:t,supportedOptions:n,seriesColorOptions:r,ref:l,onClose:()=>o(!1)}):null},ki=e=>{let{editor:t,"aria-label":n,spellCheck:r}=e;return(0,h.jsx)(eD.$Z,{editor:t,"aria-label":n,spellCheck:r})},ko=(0,p.AH)(i0(),"inline-react-renderer"),kl="graphy-text-node",ka=ez.Ay.configure({HTMLAttributes:{class:kl}}),ks=(0,p.AH)(i2(),kl,uv("grey60"),h_(1.2),uv("textSecondary")),ku=function(){for(var e=arguments.length,t=Array(e),n=0;n({href:{default:null}})}).configure({HTMLAttributes:{class:kl}}),kh=(0,p.AH)(i3(),kl,m2),kg=eV.Rg.configure({HTMLAttributes:{class:kl}}),kf=eV._J.configure({HTMLAttributes:{class:kl}}),km=eV.ck.configure({HTMLAttributes:{class:kl}}),ky=(0,p.AH)(i7(),kl,kl,h_(4),kl,kl),kb=function(){for(var e=arguments.length,t=Array(e),n=0;n({types:["textStyle"]}),addGlobalAttributes(){return[{types:this.options.types,attributes:{font:{default:null,renderHTML:e=>e.font?{style:"font-family: ".concat(dk(e.font.fontFamily),";")}:{},parseHTML:e=>{for(let[t,n]of Object.entries(sU))if(e.style.fontFamily===n)return t;return null}}}}]},addCommands:()=>({setFont:e=>t=>{let{chain:n}=t;return n().setMark("textStyle",{font:e}).run()},unsetFont:()=>e=>{let{chain:t}=e;return t().setMark("textStyle",{font:null}).run()}})}),kS=[eY.A,eN.A,eG.A,kx,kc,ka,kp,km,kg,kf,eR.Ay,eU.Ay,eW.Ay,kv,eK.A.configure({types:["heading","paragraph"]}),eZ.xJ,kP,eZ.Q1,eX.lb,eX.vR,kk];function kL(e,t){var{content:n,extensions:r=kS,isValidContent:i,onError:o,isEditable:l}=e,a=sJ(e,["content","extensions","isValidContent","onError","isEditable"]);return(0,eD.hG)(Object.assign(Object.assign({},a),{extensions:r,content:n,editable:l,onCreate:e=>{var t;(()=>{try{n&&"string"!=typeof n&&i(n)}catch(e){if(!o)throw new dL("caption-editor","Could not validate ProseMirror content",e);o(e)}})(),null==(t=null==a?void 0:a.onCreate)||t.call(a,e)},immediatelyRender:!1}),t)}function kM(){let{skip:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(e||[]).map(e=>e.name);return kS.filter(e=>!t.includes(e.name))}let kO=eX.Or.configure({showOnlyCurrent:!1}),kT=(0,p.AH)(oe(),uv("textDisabled")),kD=(0,p.AH)(ot(),kT),kI=(0,p.I4)(kw)(or(),kD,e=>{let{$shouldFitContainer:t}=e;return t&&(0,p.AH)(on())}),kz=e=>{var{showToolbar:t=!0,shouldFitContainer:n=!1,children:r,editor:i,seriesColorOptions:o}=e,l=sJ(e,["showToolbar","shouldFitContainer","children","editor","seriesColorOptions"]);return(0,h.jsxs)(kI,{$shouldFitContainer:n,children:[t&&(0,h.jsx)(kr,{editor:i,seriesColorOptions:o}),(0,h.jsx)(ki,Object.assign({editor:i},l)),r]})};function kE(){let{placeholder:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[...kM({skip:[ka,kc,kx]}),kb({addAttributes(){let e=this.parent;return Object.assign(Object.assign({},e?e():{}),{placeholder:{default:null}})}}),ku({addAttributes(){let e=this.parent;return Object.assign(Object.assign({},e?e():{}),{placeholder:{default:""}})}}),kO.configure({placeholder:t=>{let{node:n}=t;return n.attrs.placeholder||e}})]}let kH=(e,t)=>e_.bP.fromJSON(e,t).check(),kV=(0,eI._w)(kE()),kF=e=>kH(kV,e);function kB(e,t){var{placeholder:n,onEnterPress:r,onError:i,content:o,isEditable:l=!0}=e,a=sJ(e,["placeholder","onEnterPress","onError","content","isEditable"]);return kL(Object.assign({extensions:function(e){var{onEnterPress:t}=e;return[...kE(sJ(e,["onEnterPress"])),...t?[eI.YY.create({name:"interceptNewline",addKeyboardShortcuts:()=>({Enter:()=>(t(),!0)})})]:[]]}({placeholder:n,onEnterPress:r}),content:o,isEditable:l,onError:(0,M.useCallback)(e=>{throw i&&i(e),new dL("caption-editor","Could not display ProseMirror content",e)},[i]),isValidContent:kF},a),t)}let kR=M.forwardRef(function(e,t){var{children:n}=e,r=sJ(e,["children"]);let i=kB(r);return(0,M.useImperativeHandle)(t,()=>({editor:i}),[i]),(0,M.useEffect)(()=>{!r.autofocus||(null==i?void 0:i.isDestroyed)||null==i||i.commands.focus()},[null==i?void 0:i.isDestroyed]),(0,h.jsx)(kz,Object.assign({editor:i},r,{children:null==n?void 0:n(i)}))}),kY=(0,M.createContext)(null),kG=uD(kY,"CaptionEditorControlledContext"),kU=e=>{var{children:t,editorDeps:n}=e;let r=kB(sJ(e,["children","editorDeps"]),n),i=(0,M.useMemo)(()=>({editor:r}),[r]);return(0,h.jsx)(kY.Provider,{value:i,children:t})},kW=e=>{var{children:t}=e,n=sJ(e,["children"]);let{editor:r}=kG();return(0,h.jsx)(kz,Object.assign({editor:r},n,{children:t}))},kN={type:"doc",content:[{type:"paragraph"}]},kK=O.z.object({type:O.z.literal("doc"),content:O.z.array(O.z.object({type:O.z.literal("paragraph"),placeholder:O.z.string().optional(),content:O.z.undefined()})).optional()}),kZ=e=>kK.safeParse(e).success,kX=e=>{let t=e_.bP.fromJSON(kV,e);return t.textBetween(0,t.nodeSize-2,"\n").trim()},k_=/^\s*Source\s*:\s*.+$/,kQ=e=>{let t=e_.bP.fromJSON(kV,e),n=[];return t.forEach(e=>{e.textContent.match(k_)||n.push(e.toJSON())}),{type:"doc",content:n}},kJ=e=>{let t=null;return e.forEach(e=>{e.textContent.match(k_)&&(t=e.toJSON())}),t},kq=p.I4.div(oi(),hW,uv("textPrimary"),uv("textDisabled"),uv("textPrimary")),k$=(0,p.I4)(vK)(oo()),k1=e=>{var t,n;let r=(0,Z.s9)(),i=(0,M.useRef)(null),[o,l]=(0,M.useState)(!(null==(n=null==(t=i.current)?void 0:t.editor)?void 0:n.state.doc.textContent.trim().length)),a=()=>{var t;let n=null==(t=i.current)?void 0:t.editor,r=null==n?void 0:n.state.doc.toJSON();if(!r)return;let{propertyKey:o,rowIndex:l}=dD(e.dataPoint.id);e.onAnnotate({id:crypto.randomUUID(),propertyKey:o,rowIndex:l,rowValue:e.getRowCategoricalValue(l),config:{type:"tooltip",caption:r}})};return(0,h.jsxs)(vJ,{title:r("graph.annotations.textMenu.title"),onBack:()=>e.setActiveSubMenu(null),children:[(0,h.jsx)(kq,{children:(0,h.jsx)(kR,{onEnterPress:a,onUpdate:()=>{var e,t;l(!(null==(t=null==(e=i.current)?void 0:e.editor)?void 0:t.state.doc.textContent.trim().length))},autofocus:!0,ref:i,placeholder:r("graph.annotations.textMenu.placeholder"),showToolbar:!1})}),(0,h.jsx)(k$,{onClick:a,alignment:"left",variant:"primary",disabled:o,verticalPadding:"sm",children:r("graph.annotations.textMenu.addButton")})]})},k0={type:"highlight",highlight:"data-point"},k2={type:"highlight",highlight:"series"},k5={type:"highlight",highlight:"x-value"},k3=e=>{let t=e.filter(yI).flatMap(e=>e.dataPoints.filter(yM)),n=new Set(t.map(e=>e.xValue));return{barsInBarGroupOrStack:Math.ceil(t.length/n.size),barSeriesCount:[...new Set(e.flatMap(e=>e.dataPoints.filter(yS).map(e=>{var t;return null!=(t=e.groupValues[0])?t:null})))].length,lineSeriesCount:[...new Set(e.flatMap(e=>e.dataPoints.filter(yP).map(e=>{var t;return null!=(t=e.groupValues[0])?t:null})))].length,pointSeriesCount:[...new Set(e.flatMap(e=>e.dataPoints.filter(yT).map(e=>{var t;return null!=(t=e.groupValues[0])?t:null})))].length}},k7=e=>{let t=mu("overPlotPortalId"),n=b3("plotOffsetX"),r=b3("plotOffsetY"),i=b3("plotWidth"),o=b3("plotHeight");return(0,h.jsx)(my,{container:document.getElementById(t),id:"annotationsMenuAddon",zIndex:mt.annotationsMenu,children:(0,h.jsx)(xg,{style:{transform:"translate(".concat(n,"px, ").concat(r,"px)"),width:i,height:o},children:(0,h.jsx)(k9,Object.assign({},e))})})},k9=e=>{let{annotations:t,highlightStyle:n,getDataPointId:r,getRowCategoricalValue:i,stickers:o,onAnnotate:l,onRemoveHighlight:a}=e,s=gG(e=>e.theme),u=ml(),{overlayState:{activeHitbox:c,closestDataPointToAnnotation:d,distanceToAnnotation:p},events:g}=yk(),[f,m]=(0,M.useState)(null),{canUserInteractWithAddon:y}=xp(),[b,x]=(0,M.useState)(!1),{isLineDimmed:C,isBarDimmed:v}=yE(),[j,A]=(0,M.useState)(!1),w=(0,M.useCallback)(e=>null!==e&&t.some(t=>!uf(t)&&ug(t)&&r(t)===e.id),[t,r]);(0,M.useEffect)(()=>{let e=e=>{let t=e.detail;y("annotationsMenuAddon")&&(w(t.closestDataPointToAnnotation)||t.distanceToAnnotation<=15&&(m(t.closestDataPointToAnnotation),x(!0),A(!0),g.emit("deactivateHitbox",{})))};return g.on("click",e),()=>g.off("click",e)},[y,g,w]),(0,M.useEffect)(()=>{null!==c&&(j||(d&&!w(d)&&m(d),p>15&&(x(!1),null===c&&m(null))))},[c,d,p,w,j]),(0,M.useEffect)(()=>{null!==c||b||m(null)},[c,b]),(0,M.useEffect)(()=>{w(d)&&m(null)},[f,d,w]);let k=(0,M.useMemo)(()=>(null==d?void 0:d.id)===(null==f?void 0:f.id)&&!w(d)&&p<=15,[d,p,w,f]);(0,M.useEffect)(()=>{k?document.body.style.cursor="pointer":document.body.style.removeProperty("cursor")},[k]);let P=(0,M.useMemo)(()=>null===f?{x:0,y:0}:xi(f),[f]),S=(e=>{let{dataPoint:t,highlightStyle:n,isLineDimmed:r,isBarDimmed:i}=e,o=mh();return t?yP(t)||yT(t)||yO(t)?bg({theme:o,color:t.vizColor,isDimmed:r(t.observation),highlightStyle:n}):yS(t)?bc({theme:o,fill:t.vizColor,opacity:t.fillOpacity,isDimmed:i(t.observation),highlightStyle:n}):"":""})({dataPoint:f,highlightStyle:n,isLineDimmed:C,isBarDimmed:v});return(0,h.jsx)(xm,{$isActive:j,children:(0,h.jsx)(xf,{$isVisible:null!==f,$isHovered:k,$isSticky:b,style:{transform:"translate(".concat(P.x,"px, ").concat(P.y,"px) translate(-50%, -50%)")},children:(0,h.jsxs)(em.bL,{open:j,onOpenChange:A,children:[(0,h.jsx)(CX,{plusStrokeColor:S,isOpen:j,isSticky:b,isHovered:k}),(0,h.jsx)(my,{container:null==u?void 0:u.container,children:f&&(0,h.jsx)(k4,{theme:s,dataPoint:f,getRowCategoricalValue:i,stickers:o,onAnnotate:e=>{l(e),A(!1)},onRemoveHighlight:()=>{f&&a(f),A(!1)}})})]})})})},k4=(0,M.forwardRef)((e,t)=>{let[n,r]=(0,M.useState)(null),{isUnhighlightable:i,options:o}=(e=>{let{activeDataPoint:t}=e,{hitboxes:n}=yk(),{isPointHighlighted:r,isSeriesHighlighted:i,isBarHighlighted:o}=yE();return(0,M.useMemo)(()=>{let e=(e=>{let{activeDataPoint:t,hitboxes:n,isPointHighlighted:r,isSeriesHighlighted:i,isBarHighlighted:o}=e,l=(e=>{let{activeDataPoint:t,isPointHighlighted:n,isSeriesHighlighted:r,isBarHighlighted:i}=e;return t&&(yP(t)||yT(t))?r(t.observation)||n(t.observation):t&&yS(t)?i(t.observation):!(!t||!yO(t))&&n(t.observation)})({activeDataPoint:t,isPointHighlighted:r,isSeriesHighlighted:i,isBarHighlighted:o}),a=(e=>{let{activeDataPoint:t,hitboxes:n}=e,{lineSeriesCount:r,barsInBarGroupOrStack:i,barSeriesCount:o,pointSeriesCount:l}=k3(n);if(!t)return[];if(yT(t)){let e=[{id:"scatterPoint",annotation:k0}];return l>1&&e.push({id:"scatterSeries",annotation:k2}),e}if(yP(t)){let e=[{id:"linePoint",annotation:k0}];return(r>1||1===r&&o>=1)&&e.push({id:"line",annotation:k2}),e}if(yS(t)){let e=[{id:"bar",annotation:k0}];if(i>1){let n="stacked"===t.stackType||"stacked-fill"===t.stackType?"barStack":"barGroup";e.push({id:n,annotation:k5})}return o>1&&e.push({id:"barSeries",annotation:k2}),e}return yO(t)?[{id:"pieSlice",annotation:k5}]:[]})({activeDataPoint:t,hitboxes:n});if(!t)return{options:[],isUnhighlightable:l};if(yP(t)){let e=a;return r(t.observation)&&(e=e.filter(e=>"linePoint"!==e.id)),i(t.observation)&&(e=e.filter(e=>"line"!==e.id)),{options:e,isUnhighlightable:l}}if(yT(t)){let e=a;return r(t.observation)&&(e=e.filter(e=>"scatterPoint"!==e.id)),i(t.observation)&&(e=e.filter(e=>"scatterSeries"!==e.id)),{options:e,isUnhighlightable:l}}if(yS(t)){let e=a;return o(t.observation)&&(e=e.filter(e=>"bar"!==e.id)),{options:e,isUnhighlightable:l}}if(yO(t)){let e=a;return r(t.observation)&&(e=e.filter(e=>"pieSlice"!==e.id)),{options:e,isUnhighlightable:l}}return{options:[],isUnhighlightable:l}})({activeDataPoint:t,hitboxes:n,isPointHighlighted:r,isSeriesHighlighted:i,isBarHighlighted:o});return Object.assign(Object.assign({},e),{options:e.options})},[t,n,r,i,o])})({activeDataPoint:e.dataPoint}),l=(()=>{switch(n){case"sticker":return(0,h.jsx)(v2,{dataPoint:e.dataPoint,getRowCategoricalValue:e.getRowCategoricalValue,setActiveSubMenu:r,stickers:e.stickers,onAnnotate:e.onAnnotate});case"highlight":return(0,h.jsx)(vq,{dataPoint:e.dataPoint,getRowCategoricalValue:e.getRowCategoricalValue,setActiveSubMenu:r,onAnnotate:e.onAnnotate,options:o});case"text":return(0,h.jsx)(k1,{dataPoint:e.dataPoint,getRowCategoricalValue:e.getRowCategoricalValue,setActiveSubMenu:r,onAnnotate:e.onAnnotate});default:return(0,h.jsx)(vL,{dataPoint:e.dataPoint,getRowCategoricalValue:e.getRowCategoricalValue,setActiveSubMenu:r,onAnnotate:e.onAnnotate,onRemoveHighlight:i?e.onRemoveHighlight:void 0,highlightOptions:o})}})();return(0,h.jsx)(mg,{theme:e.theme,children:(0,h.jsx)(xv,{ref:t,sideOffset:12,side:"right",align:"start",children:l})})});k4.displayName="AnnotationsMenu";let k6=e=>{let{dataPoint:t,formatter:n=up}=e;if(!yL(t))return null;let{alphaValue:r}=t;if(void 0===r)return null;let i=n(r,t);return(0,h.jsx)("span",{"aria-label":"Geometry opacity value",title:i.plain,children:i.rich})},k8=e=>{let{dataPoint:t,formatter:n=up}=e,r=Pe(t,n,mu("waterfallTotalLabel"));return(0,h.jsx)("span",{"aria-label":"X-axis value",title:r.plain,children:r.rich})},Pe=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:up,n=arguments.length>2?arguments[2]:void 0,{id:r,xValue:i,relatedXValue:o}=e;return r===dO?{plain:n,rich:n}:t(null!=o?o:i,e)},Pt=e=>{let{dataPoint:t,formatter:n=up}=e,{yValue:r}=t,i=n(r,t);return(0,h.jsx)("span",{"aria-label":"Y-axis value",title:i.plain,children:i.rich})},Pn=e=>{let{dataPoint:t,formatter:n=up}=e;return yT(t)&&t.labelValue?(0,h.jsx)(Pr,{dataPoint:t,formatter:n}):(0,h.jsx)(Pi,{dataPoint:t,formatter:n})},Pr=e=>{let{dataPoint:t,formatter:n=up}=e,{labelValue:r}=t;if(!r)return null;let i=n(r,t);return(0,h.jsx)("span",{"aria-label":"Grouping",title:i.plain,children:i.rich})},Pi=e=>{let{dataPoint:t,formatter:n=up}=e,{groupValues:[r]}=t;if(!r)return null;let i=n(r,t);return(0,h.jsx)("span",{"aria-label":"Grouping",title:i.plain,children:i.rich})},Po=e=>{let{dataPoint:t,formatter:n=up}=e,{pieLabel:r}=t,i=n(r,t);return(0,h.jsx)("span",{"aria-label":"Label",title:i.plain,children:i.rich})},Pl=e=>{let{dataPoint:t,formatter:n=up}=e,{pieValue:r}=t,i=n(r,t);return(0,h.jsx)("span",{"aria-label":"Value",title:i.plain,children:i.rich})},Pa=e=>new Date(e.getTime()),Ps=e=>{let t,{xType:n,dataPoint:r,previousDataPoint:i,formatter:o,labelSize:l,trendSize:a}=e,{xValue:s,yValue:u}=r,c=(0,Z.s9)(),d=(0,B.A)(),p=(0,M.useMemo)(()=>{if(!i)return null;let e=fQ({intl:d,primaryValue:u,comparisonValue:i.yValue});return null===e?null:Object.assign(Object.assign({},e),{fromTextKey:(e=>{let{currentXValue:t,previousXValue:n,xType:r,width:i}=e,[o,l]=((e,t)=>{if(null===e||null===t)return[null,null];try{return[fa(e),fa(t)]}catch(e){return[null,null]}})(t,n);return o&&l?cA(r)?(0,eQ.n)(o,(e=>Pa(e).setUTCFullYear(e.getUTCFullYear()+1))(l))?"graph.trendComparison.fromPreviousYear.".concat(i):(0,eQ.n)(o,(e=>Pa(e).setUTCMonth(e.getUTCMonth()+1))(l))?"graph.trendComparison.fromPreviousMonth.".concat(i):(0,eQ.n)(o,(e=>Pa(e).setUTCDate(e.getUTCDate()+7))(l))?"graph.trendComparison.fromPreviousWeek.".concat(i):(0,eQ.n)(o,(e=>Pa(e).setUTCDate(e.getUTCDate()+1))(l))?"graph.trendComparison.fromPreviousDay.".concat(i):(0,eQ.n)(o,(e=>Pa(e).setUTCHours(e.getUTCHours()+1))(l))?"graph.trendComparison.fromPreviousHour.".concat(i):null:"graph.trendComparison.fromPrevious.".concat(i):null})({currentXValue:s,previousXValue:i.xValue,xType:n,width:"small"===l?"short":"long"}),fromText:o?o(i.xValue,i).plain:fj({intl:d,value:i.xValue})})},[i,d,u,s,n,l,o]);if(!p)return null;let g=(0,h.jsx)(uu,{appearance:p.appearance,size:a,children:p.label});return t=p.fromTextKey?(0,Z.jk)(c(p.fromTextKey,{value:(0,Z.S1)()}),[{placeholder:(0,Z.S1)(),reactContent:g}]):(0,h.jsxs)(h.Fragment,{children:[g," ",p.fromText]}),(0,h.jsx)(mM,{size:l,text:t})},Pu=e=>{if((e=>yS(e)&&"hatched"===e.fillType||yP(e)&&"dashed"===e.lineType)(e))return"hatched"},Pc=p.I4.div(ol()),Pd=p.I4.div(oa(),h_(.25)),Pp=p.I4.span(os(),sO,e=>{let{$shouldTruncate:t}=e;return t&&h0},uv("white")),Ph=p.I4.span(ou(),sD,e=>{let{$shouldTruncate:t}=e;return t&&h0},uv("tooltipLabelTextColor")),Pg=e=>{let{footerLabel:t,items:n,shouldTruncate:r=!1}=e;return(0,h.jsxs)(Pc,{children:[n.map((e,t)=>{let{legendSymbol:n,label:i,trend:o}=e;return(0,h.jsxs)(M.Fragment,{children:[(0,h.jsxs)(Pd,{children:[n,(0,h.jsx)(Pp,{$shouldTruncate:r,children:i})]}),o]},t)}),t&&(0,h.jsx)(Ph,{$shouldTruncate:r,children:t})]})},Pf=()=>{let e=mh(),{isBarDimmed:t,isLineDimmed:n,dimAmount:r}=yE();return{getLegendSymbolFill:(i,o)=>{let l=(e=>yS(e)?t(e.observation):!!yP(e)&&n(e.observation))(i)&&"normal"===r,a=(e=>yS(e)?e.fillOpacity:1)(i);if(yS(i))return bc({theme:e,fill:i.vizColor,opacity:a,isDimmed:l,highlightStyle:o});if(yP(i))return bg({theme:e,color:i.vizColor,isDimmed:l,highlightStyle:o});try{return eJ.Ay.mix(e.values.grey100,i.vizColor,a).hex()}catch(e){return i.vizColor}}}},Pm=e=>{var{xType:t,isPinned:n=!1,shouldShowTrend:r,isHovering:i=!1,shouldShowMiniTooltip:o,highlightStyle:l,dataPoint:a}=e,s=sJ(e,["xType","isPinned","shouldShowTrend","isHovering","shouldShowMiniTooltip","highlightStyle","dataPoint"]);let u=(0,B.A)(),{getLegendSymbolFill:c}=Pf();if(!a||!yO(a)&&!yM(a))return null;let d=Py(Object.assign({dataPoint:a,intl:u,xType:t,shouldShowTrend:r,shouldShowMiniTooltip:o,getLegendSymbolFill:c,highlightStyle:l},s)),p=n||o;return Pb({isPinned:n,isHovering:i,shouldShowMiniTooltip:o})?(0,h.jsx)(Pg,{footerLabel:p?void 0:d.label,items:[{label:d.value,legendSymbol:(0,h.jsx)(s6,{symbol:a.type,fill:c(a,l),pattern:Pu(a)}),trend:Px(a,{isPinned:n,shouldShowTrend:r})&&(0,h.jsx)(Ps,{xType:t,dataPoint:a,previousDataPoint:a.previousDataPoint,formatter:s.formatXValue,labelSize:"small",trendSize:"small"})}]}):(0,h.jsx)(mK,Object.assign({},d))},Py=e=>{var{dataPoint:t,intl:n,xType:r,shouldShowMiniTooltip:i,shouldShowTrend:o,getLegendSymbolFill:l,highlightStyle:a}=e,s=sJ(e,["dataPoint","intl","xType","shouldShowMiniTooltip","shouldShowTrend","getLegendSymbolFill","highlightStyle"]);let{previousDataPoint:u}=t,c={heading:null,value:null,label:null,caption:null,accessory:(0,h.jsx)(s6,{symbol:t.type,fill:l(t,a),pattern:Pu(t)}),trend:null};if(yO(t)){let{percentage:e,valueType:r}=t;return Object.assign(Object.assign({},c),{heading:(0,h.jsx)(Po,{dataPoint:t,formatter:s.formatPieLabel}),value:(0,h.jsx)(Pl,{dataPoint:t,formatter:s.formatPieValue}),label:i?(0,h.jsx)(Po,{dataPoint:t,formatter:s.formatPieLabel}):null,caption:r===gP.Percentage?null:(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(uu,{appearance:"neutral",children:fI({intl:n,value:e})})," of total"]})})}return yM(t)?yL(t)?Object.assign(Object.assign({},c),{value:(0,h.jsx)(k6,{dataPoint:t,formatter:s.formatAlphaValue}),label:(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(Pt,{dataPoint:t,formatter:s.formatYValue})," \xb7"," ",(0,h.jsx)(k8,{dataPoint:t,formatter:s.formatXValue})]})}):Object.assign(Object.assign({},c),{heading:(0,h.jsx)(Pn,{dataPoint:t,formatter:s.formatGroupValue}),value:(0,h.jsx)(Pt,{dataPoint:t,formatter:s.formatYValue}),label:(0,h.jsx)(k8,{dataPoint:t,formatter:s.formatXValue}),trend:o&&(0,h.jsx)(Ps,{xType:r,dataPoint:t,previousDataPoint:u,formatter:s.formatXValue})}):c},Pb=e=>{let{isPinned:t,isHovering:n,shouldShowMiniTooltip:r}=e;return t&&!n||!t&&r},Px=(e,t)=>{let{isPinned:n,shouldShowTrend:r}=t;return!!(r&&!n&&yM(e)&&!yL(e))},PC=p.I4.div(oc(),h_(.8));p.I4.div(od(),sT,uv("white"));let Pv=p.I4.div(op()),Pj=p.I4.div(oh()),PA=p.I4.div(og(),sM,uv("tooltipLabelTextColor")),Pw=e=>{let{accessory:t,value:n,label:r,caption:i}=e;return(0,h.jsxs)(Pv,{children:[(0,h.jsx)(Pj,{children:i}),(0,h.jsxs)(PA,{children:[(0,h.jsxs)(PC,{children:[null!=t?t:(0,h.jsx)("div",{}),r]}),n]})]})},Pk=e=>{let{dataPoint:t,formatPieValue:n,formatPieLabel:r,isPinned:i=!1,formatXValue:o,formatYValue:l,formatAlphaValue:a,isEditable:s,isHovering:u=!1,annotationConfig:c,highlightStyle:d,onUpdate:p}=e,{getLegendSymbolFill:g}=Pf(),f=kL({content:null==c?void 0:c.caption,isValidContent:e=>!!e},[null==c?void 0:c.caption]),m=(0,M.useMemo)(()=>{let e={caption:(0,h.jsx)(kR,{content:null==c?void 0:c.caption,isEditable:s,placeholder:"",showToolbar:!1,onBlur:e=>{null==p||p(e.editor.getJSON())}}),accessory:null,label:null,value:null};return yM(t)&&(e.accessory=(0,h.jsx)(s6,{symbol:t.type,fill:g(t,d),pattern:Pu(t)}),yL(t)?(e.label=(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(Pt,{dataPoint:t,formatter:l})," \xb7"," ",(0,h.jsx)(k8,{dataPoint:t,formatter:o})]}),e.value=(0,h.jsx)(k6,{dataPoint:t,formatter:a})):(e.label=(0,h.jsx)(k8,{dataPoint:t,formatter:o}),e.value=(0,h.jsx)(Pt,{dataPoint:t,formatter:l}))),yO(t)&&(e.accessory=(0,h.jsx)(s6,{symbol:t.type,fill:g(t,d)}),e.label=(0,h.jsx)(Po,{dataPoint:t,formatter:r}),e.value=(0,h.jsx)(Pl,{dataPoint:t,formatter:n})),e},[null==c?void 0:c.caption,t,a,r,n,o,l,g,d,s,p]);return t?i&&!u?(0,h.jsx)(Pg,{items:[{label:null==f?void 0:f.getText()}],shouldTruncate:!0}):(0,h.jsx)(mg,{theme:h4,children:(0,h.jsx)(Pw,Object.assign({},m))}):null},PP=e=>{let{dataPoint:t,xType:n,arrowPlacement:r,highlightStyle:i,isEditable:o,onUpdate:l,matchingAnnotation:a,formatters:s}=e,[u,c]=(0,M.useState)(!1),d=void 0!==(null==a?void 0:a.caption),p=null!=n?n:gP.Text;return a?(0,h.jsx)(mE,{hasArrow:!0,arrowPlacement:r,onHover:()=>c(!0),onHoverEnd:()=>c(!1),children:d?(0,h.jsx)(Pk,Object.assign({},s,{dataPoint:t,annotationConfig:a,isPinned:!0,isEditable:o,isHovering:u,onUpdate:l,highlightStyle:i})):(0,h.jsx)(Pm,u?Object.assign({},s,{dataPoint:t,xType:p,isPinned:!0,isHovering:!0,shouldShowMiniTooltip:!1,shouldShowTrend:!1,highlightStyle:i}):Object.assign({},s,{dataPoint:t,xType:p,isPinned:!0,isHovering:!1,shouldShowMiniTooltip:!0,shouldShowTrend:!1,highlightStyle:i}))}):null},PS=e=>{let{dataPoint:t,xType:n,shouldShowTrend:r,highlightStyle:i,formatters:o,shouldShowMiniTooltip:l}=e,a=null!=n?n:gP.Text;return(0,h.jsx)(mE,{hasArrow:!1,children:(0,h.jsx)(Pm,Object.assign({},o,{dataPoint:t,xType:a,isPinned:!1,isHovering:!0,shouldShowMiniTooltip:l,shouldShowTrend:cA(a)&&r,highlightStyle:i}))})},PL=e=>{var{mode:t="hover",dataPoint:n,xType:r=gP.Text,shouldShowTrend:i,annotations:o,arrowPlacement:l,highlightStyle:a,isEditable:s,onUpdate:u,shouldShowMiniTooltip:c}=e,d=sJ(e,["mode","dataPoint","xType","shouldShowTrend","annotations","arrowPlacement","highlightStyle","isEditable","onUpdate","shouldShowMiniTooltip"]);let p=(0,M.useMemo)(()=>{var e;let t=null==o?void 0:o.find(e=>!uf(e)&&!!ug(e)&&dT(e)===(null==n?void 0:n.id));return"tooltip"===(null==(e=null==t?void 0:t.config)?void 0:e.type)?t.config:null},[o,null==n?void 0:n.id]);return"pinned"===t?(0,h.jsx)(PP,{dataPoint:n,xType:r,arrowPlacement:l,highlightStyle:a,isEditable:s,onUpdate:u,matchingAnnotation:p,formatters:d}):(0,h.jsx)(PS,{dataPoint:n,xType:r,shouldShowTrend:i,highlightStyle:a,formatters:d,shouldShowMiniTooltip:!!c})},PM=e=>{let{overlayState:t}=yk(),{pointer:n,plotWidth:r,closestGeomDataPoint:i}=t,o=null!==r&&r<=400,{canUserInteractWithAddon:l}=xp(),a=l("tooltipAddon"),{isVisible:s,setTooltipContainer:u,position:c}=mF({isEnabled:null!==i&&a,pointer:n,offset:o?12:24});return s&&i?(0,h.jsx)(mS,{ref:u,children:(0,h.jsx)("div",{style:c,children:(0,h.jsx)(PL,Object.assign({dataPoint:i,shouldShowMiniTooltip:o},e))})}):null},PO=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{id:"tooltip",render:()=>(0,h.jsx)(PM,Object.assign({mode:"hover"},e))}},PT=M.createContext(null),PD=()=>{let e=(0,M.useContext)(PT);if(null===e)throw Error("ScalesProvider must be present in the React tree");return e},PI={xValues:[],_setXValues(){},yDomain:[],_setYDomain(){},secondaryYDomain:[],_setSecondaryYDomain(){},legendItems:[],_setLegendItems(){},defaultLegendPosition:"top",_setDefaultLegendPosition(){},availableLegendPositions:[],_setAvailableLegendPositions(){}},Pz=M.createContext(null),PE=()=>{let e=(0,M.useContext)(Pz);return null!=e?e:PI},PH=e=>{let{children:t}=e,[n,r]=(0,M.useState)([]),[i,o]=(0,M.useState)([]),[l,a]=(0,M.useState)([]),[s,u]=(0,M.useState)([]),[c,d]=(0,M.useState)("top"),[p,g]=(0,M.useState)([]),f=(0,M.useMemo)(()=>({xValues:n,_setXValues:r,yDomain:i,_setYDomain:o,secondaryYDomain:l,_setSecondaryYDomain:a,legendItems:s,_setLegendItems:u,defaultLegendPosition:c,_setDefaultLegendPosition:d,availableLegendPositions:p,_setAvailableLegendPositions:g}),[n,i,l,s,c,p]);return(0,h.jsx)(Pz.Provider,{value:f,children:t})},PV={count:"Count",distinct:"Distinct",sum:"Sum",min:"Min",max:"Max",mean:"Average",median:"Median",mode:"Mode"},PF=e=>e.some(e=>e.dataType.type===gP.Percentage),PB=e=>{var t,n;return!!(null==(t=e[0])?void 0:t.dataType.type)&&cA(null==(n=e[0])?void 0:n.dataType.type)},PR=(e,t)=>{if(t)return e.find(e=>e.key===t)},PY=(e,t)=>e.filter(e=>"numerical"===t?ck(e.dataType.type):!ck(e.dataType.type)),PG=e=>{if(!e.columnMappings)return e.defaultProperties;let t=e.columnMappings.map(t=>PR(e.computedProperties,t.key)).filter(e=>void 0!==e);return 0===t.length?e.defaultProperties:t},PU=e=>{if(!e.mainAxisColumnMapping)return e.defaultProperties;let t=PR(e.computedProperties,e.mainAxisColumnMapping.key);return t?[t]:e.defaultProperties},PW=e=>{var t;let n=PY(e,"categorical"),r=PY(e,"numerical");return 0===n.length&&r.length>=1?{xAxisProperties:r[0]?[r[0]]:[],yAxisProperties:[...null!=(t=r.slice(1))?t:[]],sizeProperty:void 0}:{xAxisProperties:n[0]?[n[0]]:[],yAxisProperties:r,sizeProperty:void 0}},PN=/^\s*(19\d{2}|2[01]\d{2})\s*$/,PK="filler",PZ={[gP.Date]:"graph.defaultPropertyLabels.date",[gP.Datetime]:"graph.defaultPropertyLabels.date",[gP.DayMonth]:"graph.defaultPropertyLabels.date",[gP.Year]:"graph.defaultPropertyLabels.year",[gP.Quarter]:"graph.defaultPropertyLabels.quarter",[gP.Month]:"graph.defaultPropertyLabels.month",[gP.MonthYear]:"graph.defaultPropertyLabels.month",[gP.WeeklyDateRange]:"graph.defaultPropertyLabels.week",[gP.WeeklyDateRangeWithYear]:"graph.defaultPropertyLabels.week",[gP.Currency]:"graph.defaultPropertyLabels.series",[gP.Decimal]:"graph.defaultPropertyLabels.series",[gP.Integer]:"graph.defaultPropertyLabels.series",[gP.Percentage]:"graph.defaultPropertyLabels.series",[gP.Duration]:"graph.defaultPropertyLabels.series",[gP.Boolean]:"graph.defaultPropertyLabels.category",[gP.Text]:"graph.defaultPropertyLabels.category"},PX=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u8,r=arguments.length>3?arguments[3]:void 0,i=P_(e,t),o=((e,t)=>{let n=new Map,r=new Set(e.map(e=>e.key));for(let e of t){for(let t of r){let i=e[t];pU(i)||(n.set(t,i),r.delete(t))}if(0===r.size)break}return n})(e,t),l=0;return Pq(e.reduce((e,t,r)=>{if(r===i)return e.push(PJ(t)),e;let a=o.get(t.key);if(pU(a))return e;let{computedProperty:s,isNumeric:u}=PQ(t,l,a,n);return u&&(l+=1),e.push(s),e},[]),r)},P_=(e,t)=>{let n=((e,t)=>{let n=[];for(let r of e)if(hT(r)&&n.push(r),n.length===t)break;return n})(t,5);return e.findIndex(e=>{let t=n.map(t=>t[e.key]).filter(e=>!pU(e));return t.length>=2&&t.every(e=>"number"==typeof e?!Number.isNaN(e)&&e>=1900&&e<=2199:"string"==typeof e&&PN.test(e))})},PQ=(e,t,n,r,i)=>{var o;let l=pG(n,r),a=ck(l.type),s=P$(l.type,i,t);return{isNumeric:a,computedProperty:Object.assign(Object.assign({},e),{dataType:l,aggregation:a?null!=(o=e.aggregation)?o:"sum":void 0,getDefaultLabel:s})}},PJ=e=>Object.assign(Object.assign({},e),{dataType:{type:gP.Year,dateFormat:"yyyy"},getDefaultLabel:e=>e("graph.defaultPropertyLabels.year")}),Pq=(e,t)=>{var n,r;return 1!==e.length?e:(null==(n=e[0])?void 0:n.dataType.type)&&!ck(null==(r=e[0])?void 0:r.dataType.type)?[...e,{key:PK,dataType:{type:gP.Decimal},getDefaultLabel:P$(gP.Decimal,t),aggregation:"sum"}]:e},P$=(e,t,n)=>ck(e)&&void 0!==n?"heatmap"===t?e=>e("graph.defaultPropertyLabels.rowNumber",{number:n+1}):!t||[...uJ,...uq,"combo","line"].includes(t)?e=>e("graph.defaultPropertyLabels.seriesNumber",{number:n+1}):e=>e("graph.defaultPropertyLabels.columnNumber",{number:n+1}):t=>t(PZ[e]),P1=(e,t,n)=>{let r,i=((e,t,n)=>{if("table"===e||"scatter"===e||t.filter(e=>ck(e.dataType.type)).some(e=>e.key===PK))return;let r=t.find(e=>!ck(e.dataType.type));return n.shouldAggregate?r:void 0})(n,e,t),o=void 0!==i,l=o&&void 0===t.shouldAggregate&&!cA(null==i?void 0:i.dataType.type),a=o&&(l||!0===t.shouldAggregate);if(a){let e=cA(i.dataType.type);(!e||t.groupByTimeUnit&&hB(t.groupByTimeUnit,i.dataType.type))&&(r={key:i.key,timeUnit:e?t.groupByTimeUnit:void 0})}let s=e.map(e=>{let t=e.key!==(null==i?void 0:i.key)&&ck(e.dataType.type);return{key:e.key,originalKey:e.key,aggregation:t?e.aggregation:void 0}}),u=t.sortBy?[t.sortBy]:void 0,c=r&&(null==i?void 0:i.dataType.type)&&cA(i.dataType.type)&&r.timeUnit?hJ(i.dataType.type,r.timeUnit):null==i?void 0:i.dataType.type,d=[];t.rollingDateFilter&&i&&c&&cD(c,t.rollingDateFilter.timeUnit)&&d.push(Object.assign({key:i.key,operator:"within last"},t.rollingDateFilter));let p=e.filter(e=>ck(e.dataType.type));return a&&0===p.length&&s.push({key:"".concat(i.key,"_count"),aggregation:"count",isDerived:!0,originalKey:i.key}),{isAggregated:a,groupByProperty:i,resolvedGroupByDataType:c,view:{sortBy:u,groupBy:r,properties:s,filters:d}}},P0=(0,M.createContext)(null),P2=()=>{let e=(0,M.useContext)(P0);if(!e)throw Error("ReportEditorProvider is not defined");return e},P5="graphy-document-title-node",P3=eI.bP.create({name:"documentTitle",content:"text*",addOptions:()=>({onDocumentTitleChange:()=>{},HTMLAttributes:{"data-title":!0,class:P5}}),parseHTML:()=>[{tag:"h1[data-title]"}],renderHTML(e){var t;let{HTMLAttributes:n}=e;return["h1",(0,eI.KV)(null!=(t=this.options.HTMLAttributes)?t:{},n),0]},onTransaction(e){var t,n,r;let{transaction:i}=e;if(!i.docChanged)return;let o=null==(n=null==(t=i.docs[i.docs.length-1])?void 0:t.firstChild)?void 0:n.textContent,l=null==(r=i.doc.firstChild)?void 0:r.textContent;o!==l&&this.options.onDocumentTitleChange(l||"")}}),P7=(0,p.AH)(of(),P5,m_,h_(4)),P9=eY.A.extend({content:"".concat(P3.name," block*")});function P4(){let{onDocumentTitleChange:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[P3.configure({onDocumentTitleChange:e}).extend(),P9,...kM({skip:[eY.A]}),kO.configure({placeholder:e=>{let{node:t}=e;return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Untitled report";return e.type.name===P3.name?t:""}(t)}}),eX.JU]}let P6=(0,eI._w)(P4()),P8=e=>kH(P6,e),Se=e=>{var{children:t,content:n,isEditable:r,onError:i}=e,o=sJ(e,["children","content","isEditable","onError"]);let l=kL(Object.assign({extensions:P4({}),content:n,isEditable:r,onError:i,isValidContent:P8},o)),a=(0,M.useMemo)(()=>({editor:l}),[l]);return(0,h.jsx)(P0.Provider,{value:a,children:t})},St=(0,p.AH)(om(),P7,kT),Sn=(0,p.I4)(kw)(oy(),St),Sr=()=>{let{editor:e}=P2();return(0,h.jsxs)(Sn,{children:[(0,h.jsx)(kr,{editor:e}),(0,h.jsx)(ki,{editor:e})]})},Si={type:"doc",content:[{type:"documentTitle"}]};function So(e){let{placeholder:t}=e;return[...kM({skip:[ka]}),kO.configure({placeholder:t})]}let Sl=(0,eI._w)(So({placeholder:""})),Sa=e=>kH(Sl,e),Ss=(0,p.AH)(ob(),kT,su.bold),Su=(0,p.I4)(kw)(ox(),Ss),Sc=["color","bold","italic","underline","link"],Sd=e=>{var{placeholder:t,children:n,isEditable:r=!0}=e,i=sJ(e,["placeholder","children","isEditable"]);let o=kL(Object.assign({extensions:So({placeholder:t}),isValidContent:Sa,isEditable:r},i));return(0,h.jsxs)(Su,{children:[(0,h.jsx)(kr,{editor:o,supportedOptions:Sc}),(0,h.jsx)(ki,{editor:o}),n]})},Sp=Number(Number.parseFloat(String(40/18)).toFixed(2)),Sh={min:{heading:40,text:18},max:{heading:53,text:24}},Sg={min:{heading:48,text:23},max:{heading:67,text:31}},Sf=e=>(e=>{let t="offsetWidth";return e[t]||(e.innerText=window.getComputedStyle(e,":before").getPropertyValue("content")),e[t]})(e),Sm=p.I4.div(oC(),kl,kl),Sy=e=>{let{editor:t,lineHeightVariant:n,onFontSizeChange:r}=e,i=(0,M.useRef)(null),o=(0,M.useCallback)(()=>{if(i.current){i.current.innerHTML=(null==t?void 0:t.getHTML())||"";let e=((e,t)=>{let{lineHeightVariant:n}=t,r=e.clientWidth,i=e.clientHeight,o=e.querySelector("p"),l=e.querySelector("h1");if(!o||!l)return null;let a=Sg[n].heading,s=Sg[n].text,u=Sh[n].heading,c=Sh[n].text,d,p=14,h=24,g=14;for(;p<=h;){let e=Math.round((d=h+p>>1)*Sp);o.style.fontSize=d+"px",l.style.fontSize=e+"px",e<=u&&d<=c&&Sf(o){o()},[o]),(0,M.useEffect)(()=>(null==t||t.on("update",()=>{o()}),()=>{null==t||t.off("update")}),[t,o]),(0,h.jsx)(Sm,{"aria-hidden":!0,children:(0,h.jsx)("div",{contentEditable:"true",ref:i})})},Sb=(0,p.AH)(ov(),kT,kl,kl,h0,kl,Math.round(18*Sp),kl,18,uv("textSecondary")),Sx=(0,p.AH)(oj(),Sm),SC=(0,p.I4)(kw)(oS(),Sb,e=>{let{$format:t}=e;return"STACKED"===t&&Sx},e=>{let{$format:t,$isFirstChildEmpty:n}=e;return"INLINE"===t&&(0,p.AH)(ow(),h_(.5),n&&(0,p.AH)(oA()))},e=>{let{$shouldFitContainer:t}=e;return t&&(0,p.AH)(ok())},kl,e=>{let{$lineHeightVariant:t}=e;return Sg[t].heading},kl,e=>{let{$lineHeightVariant:t}=e;return Sg[t].text},e=>{let{$fontSizeOverride:t}=e;return t&&(0,p.AH)(oP(),t.heading,t.text)}),Sv=e=>{var{shouldFitContainer:t=!1,format:n="STACKED",children:r,editor:i,lineHeightVariant:o="min"}=e,l=sJ(e,["shouldFitContainer","format","children","editor","lineHeightVariant"]);let[a,s]=(0,M.useState)(null),u=(0,M.useMemo)(()=>{let e=null==i?void 0:i.state.doc.firstChild;return!(null==e?void 0:e.isLeaf)&&!(null==e?void 0:e.childCount)},[null==i?void 0:i.state.doc.content]);return(0,h.jsxs)(SC,{$isFirstChildEmpty:u,$format:n,$fontSizeOverride:a,$shouldFitContainer:t,$lineHeightVariant:o,children:[(0,h.jsx)(ki,Object.assign({},l,{editor:i})),i&&(0,h.jsx)(Sy,{editor:i,lineHeightVariant:o,onFontSizeChange:s}),r]})},Sj=eI.YY.create({name:"leanEditorTabCursor",addKeyboardShortcuts(){return{Tab:()=>{let e=this.editor.state.selection.empty,t=this.editor.state.selection.$anchor.parent,n=1===this.editor.state.selection.$anchor.depth,r=this.editor.state.selection.$anchor.pos{let e=this.editor.state.selection.empty,t=this.editor.state.selection.$anchor.parent,n=1===this.editor.state.selection.$anchor.depth,r=this.editor.state.selection.$anchor.pos>1,i=this.editor.view.endOfTextblock("backward");if(!(e&&t&&n&&r&&i))return!0;let o=this.editor.state.selection.from-2;return!o||this.editor.chain().focus(o).run()}}}}),SA=[eR.Ay,eU.Ay,eW.Ay,kv,eN.A,eX.lb],Sw={heading:"123",paragraph:"Label"};function Sk(){let{contentSpec:e,placeholder:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[...SA,eY.A.extend({content:e}),kx,kc,Sj,kO.configure({placeholder:e=>{var n;let{node:r}=e;return r.attrs.placeholder?r.attrs.placeholder:null!=(n=Sw[r.type.name])?n:t}})]}let SP=(0,M.createContext)(null),SS=uD(SP,"LeanEditorContext"),SL=e=>{var{children:t,placeholder:n,contentSpec:r,content:i,isEditable:o=!0,onError:l}=e,a=sJ(e,["children","placeholder","contentSpec","content","isEditable","onError"]);let s=kL(Object.assign({extensions:Sk({placeholder:n,contentSpec:r}),content:i,isEditable:o,onError:(0,M.useCallback)(e=>{throw l&&l(e),new dL("lean-editor","Could not display ProseMirror content",e)},[l]),isValidContent:e=>{let t;return t={contentSpec:r,placeholder:n},kH((0,eI._w)(Sk(t)),e)}},a)),u=(0,M.useMemo)(()=>({editor:s}),[s]);return(0,h.jsx)(SP.Provider,{value:u,children:t})},SM=e=>{var{children:t}=e,n=sJ(e,["children"]);let{editor:r}=SS();return(0,h.jsx)(Sv,Object.assign({editor:r},n,{children:t}))};!function(e){e.Data="DATA",e.InlineMetric="INLINE_METRIC"}(u||(u={}));let SO={HEADING_PARAGRAPH:"heading paragraph"},ST=e=>SO[e],SD={"heading paragraph":{type:"doc",content:[{type:"heading",attrs:{level:1}},{type:"paragraph"}]}},SI=e=>SD[ST(e)],Sz={value:16,label:"Medium"},SE=[{value:12,label:"Small"},Sz,{value:20,label:"Large"},{value:24,label:"Extra Large"},{value:32,label:"Huge"}],SH=e=>{var t;let{editor:n}=e,r=null!=(t=SE.find(e=>e.value===n.getAttributes("textStyle").fontSize))?t:Sz;return(0,h.jsx)(wh,{variant:"subtle",options:SE,value:r,onChange:e=>{n.chain().focus().selectAll().setFontSize(e.value.toString()).run()},shouldFitContent:!0,renderValue:e=>e.label,renderItem:e=>{let{menuItemProps:t,option:n,label:r,description:i}=e;return(0,h.jsx)(AZ,Object.assign({},t,{description:i,children:(0,h.jsx)("span",{style:{fontSize:n.value+"px",lineHeight:1.15*n.value+"px"},children:r})}))},tooltip:{label:"Font size",hasInvertedTheme:!1}})},SV=(0,p.AH)(oL(),kl,16),SF=(0,p.I4)(kw)(oM(),SV,kT,uv("white")),SB=p.I4.div(oO()),SR=e=>{let{onDelete:t}=e;return(0,h.jsx)(jd,{label:"Delete",hasInvertedTheme:!1,children:(0,h.jsx)(vK,{variant:"subtle",onClick:()=>t(),iconBefore:(0,h.jsx)(xP,{})})})},SY=p.I4.div(oT(),uv("overlayBackground"),sz.lg,sE.sm,h_(.5),sU.modern,sH(uv("overlayBorderGradient"),1,"lg")),SG=(e,t)=>e.some(e=>e.value===t)?"fade":"opaque",SU=e=>{let{seriesColorOptions:t,onAttributesUpdate:n,annotation:r,getColorStyles:i}=e,o=gG(e=>e.theme.canvasColors);return(0,h.jsx)(j2,{tooltip:"Background",value:r.config.backgroundColor||"transparent",onChange:e=>{n(r.id,{backgroundColor:e,backgroundColorStyle:SG(o,e)})},seriesColorOptions:t,getSwatchStyles:i,showTransparentOption:!0})},SW=e=>{let{annotation:t,editor:n,inheritedFont:r,seriesColorOptions:i,onAttributesUpdate:o,onDelete:l,getBackgroundColorStyles:a}=e,s=mr();return(0,h.jsxs)(SY,{role:"toolbar","aria-label":"Free-form text toolbar",children:[(0,h.jsx)(SU,{seriesColorOptions:i,annotation:t,onAttributesUpdate:o,getColorStyles:a}),(0,h.jsx)(w4,{editor:n,seriesColorOptions:i,renderIcon:e=>(0,h.jsx)(x_,{textColor:e})}),(0,h.jsx)(wQ,{editor:n,inheritedFont:r,fonts:s}),(0,h.jsx)(SH,{editor:n}),(0,h.jsx)(w9,{editor:n}),(0,h.jsx)(SR,{onDelete:l})]})},SN=eI.YY.create({name:"fontSize",addOptions:()=>({types:["textStyle"]}),addGlobalAttributes(){return[{types:this.options.types,attributes:{fontSize:{default:null,renderHTML:e=>e.fontSize?{style:"font-size: calc(".concat(e.fontSize,"px * var(--typography-scale))")}:{},parseHTML:e=>{let t=Number.parseInt(e.style.fontSize,10);return Number.isNaN(t)?"":t}}}}]},addCommands:()=>({setFontSize:e=>t=>{let{chain:n}=t;return n().setMark("textStyle",{fontSize:e}).run()},unsetFontSize:()=>e=>{let{chain:t}=e;return t().setMark("textStyle",{fontSize:null}).run()}})}),SK=function(){let{placeholder:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[eR.Ay,eU.Ay,eZ.xJ,eZ.Q1,SN,kP,eK.A.configure({types:["paragraph"],defaultAlignment:"center"}),eY.A,eN.A,eG.A,kx,eX.lb,kO.configure({placeholder:e})]},SZ=(0,eI._w)(SK()),SX=e=>kH(SZ,e),S_=M.forwardRef(function(e,t){var{spellCheck:n,isToolbarVisible:r,inheritedFont:i,seriesColorOptions:o,onAttributesUpdate:l,onDelete:a,annotation:s,getBackgroundColorStyles:u}=e;let c=(e=>{var{placeholder:t,onError:n,content:r,isEditable:i=!0}=e,o=sJ(e,["placeholder","onError","content","isEditable"]);return kL(Object.assign({extensions:SK({placeholder:t}),content:r,isEditable:i,onError:(0,M.useCallback)(e=>{throw n&&n(e),new dL("text-annotation-editor","Could not display ProseMirror content",e)},[n]),isValidContent:SX},o))})(Object.assign(Object.assign({},sJ(e,["spellCheck","isToolbarVisible","inheritedFont","seriesColorOptions","onAttributesUpdate","onDelete","annotation","getBackgroundColorStyles"])),{content:s.config.content})),[d,p]=(0,M.useState)(null);(0,M.useImperativeHandle)(t,()=>({editor:c}),[c]);let g=mh(),f=(null==c?void 0:c.getAttributes("textStyle").color)||g.values.textSecondary;return c?(0,h.jsxs)(SF,{style:{"--selection":f},ref:p,children:[(0,h.jsx)(eD.$Z,{editor:c,spellCheck:n}),(0,h.jsx)(jf,{anchorElement:d,isWithinPortal:!0,isOpen:r,placement:"top",offset:[0,8],children:()=>(0,h.jsx)(SB,{children:(0,h.jsx)(SW,{editor:c,inheritedFont:i,seriesColorOptions:o,onAttributesUpdate:l,onDelete:a,annotation:s,getBackgroundColorStyles:u})})})]}):null}),SQ=p.I4.div(oD(),kA,SV),SJ=e=>{let{content:t}=e,[n,r]=(0,M.useState)("");return(0,M.useEffect)(()=>{try{r((e=>{try{return(0,eI.Zx)(e,SK())}catch(e){throw new dL("text-annotation-editor.content-to-html","Could not parse ProseMirror document to HTML",e)}})(t))}catch(e){}},[t]),(0,h.jsx)(SQ,{dangerouslySetInnerHTML:{__html:n}})},Sq=p.I4.div(oI(),kT,kl),S$=e=>{var{editor:t,seriesColorOptions:n}=e,r=sJ(e,["editor","seriesColorOptions"]);return(0,h.jsxs)(kw,{children:[(null==t?void 0:t.isEditable)?(0,h.jsx)(kr,{editor:t,seriesColorOptions:n}):null,(0,h.jsx)(Sq,{children:(0,h.jsx)(ki,Object.assign({editor:t},r))})]})},S1=eY.A.extend({content:"block{2, }"});function S0(e){let{t:t}=e;return[S1.configure({}),...kM({skip:[eY.A,ez.Ay,kc]}),ku({addAttributes:()=>({level:{default:3,rendered:!1}})}),kO.configure({showOnlyWhenEditable:!1,placeholder(e){var n;let{editor:r}=e;return"heading"===(null==(n=r.state.doc.firstChild)?void 0:n.type.name)?t("graph.titleEditor.titlePlaceholder"):t("graph.titleEditor.subtitlePlaceholder")}})]}let S2=(0,eI._w)(S0({t:eq.I})),S5=e=>kH(S2,e);function S3(e,t){var{onError:n,content:r,isEditable:i=!0}=e,o=sJ(e,["onError","content","isEditable"]);let l=S0({t:(0,Z.s9)()}),a=(0,M.useCallback)(e=>{null==n||n(e)},[n]);return kL(Object.assign({extensions:l,content:r?"string"==typeof r?r:!r.content||r.content.length<2?Object.assign(Object.assign({},r),{content:[...r.content||[],{type:"paragraph"}]}):r:void 0,isEditable:i,onError:a,isValidContent:S5},o),t)}let S7=pN(),S9=e=>""===e_.bP.fromJSON(S2,e).textContent,S4={type:"doc",content:[{type:"heading",attrs:{level:6}}]},S6=O.z.object({type:O.z.literal("doc"),content:O.z.array(O.z.object({type:O.z.literal("heading"),placeholder:O.z.string().optional(),content:O.z.undefined(),attrs:O.z.object({level:O.z.literal(6)})})).length(1)});function S8(e){let{caption:t}=e;return t?"object"==typeof t?t:{type:"doc",content:[{type:"heading",attrs:{level:6},content:[{type:"text",text:t}]}]}:S4}let Le=e=>!("text"!==e.type||e.text&&""!==e.text)||!!e.content&&e.content.some(e=>Le(e)),Lt=e=>{if(Le(e))return"";let t=e_.bP.fromJSON(S2,e);return(0,eI.q4)(t)};function Ln(e){var t,n,r;let i=null==(t=e.content)?void 0:t[0],o=null!=(r=null==(n=e.content)?void 0:n.slice(1))?r:[];return{title:((e,t)=>{let n=[...e];return n.length>t?n.slice(0,t).join(""):e})(i?Lt({type:"doc",content:[i]}):"",191),subtitle:o.length?Lt({type:"doc",content:o}):""}}let Lr=e=>Ln(e).title;function Li(e){return Lt(e)}function Lo(e){var t,n,r;let{titleDocument:i,newTitle:o}=e,l=null==(t=i.content)?void 0:t[0],a=null!=(r=null==(n=i.content)?void 0:n.slice(1))?r:[];return{type:"doc",content:[l?Object.assign(Object.assign({},l),{content:[{type:"text",text:o}]}):{type:"heading",attrs:{level:3},content:[{type:"text",text:o}]},...a.length?[{type:"paragraph",content:a}]:[]]}}class Ll{with(e,t){return new Ll(Object.assign(Object.assign({},this.state),{[e]:Array.isArray(t)?[...t]:t}))}withMany(e){return new Ll(Object.assign(Object.assign({},this.state),e))}build(){return this.serialize(this.state)}serialize(e){return e instanceof Ll?e.build():Array.isArray(e)?this.serializeArray(e):(0,w.A)(e)?this.serializeObject(e):e}serializeArray(e){return e.map(e=>this.serialize(e))}serializeObject(e){let t={};for(let n in e)t[n]=this.serialize(e[n]);return t}constructor(e){this.state=e,this.state=e}}new Ll({theme:"graphy",palette:"graphy",borderStroke:dg.border,borderType:dm.enum.gradient,borderStyleName:"lilac",shouldHideCaption:!0,shouldHideSourceSection:!0,shouldHideLogo:!1}),new Ll({dataType:{type:gP.Text},key:"some-key",getDefaultLabel:()=>"Default label",aggregation:void 0}),new Ll({type:gP.Text});let La=new Ll({type:"doc",content:[new Ll({type:"paragraph"})]}),Ls="graphy__chart-plot",Lu=e=>{switch(e.vizType){case"bar":case"barStacked":case"barStackedFill":case"column":case"columnStacked":case"columnStackedFill":case"line":case"areaStacked":case"scatter":case"bubble":case"combo":return("total"!==e.stat||e.type!==gP.Percentage)&&"conversion"!==e.stat;case"heatmap":return"average"===e.stat;case"funnel":return"conversion"===e.stat;case"mekko":case"pie":case"donut":case"waterfall":case"table":return!1}},Lc=(e,t)=>{let n=dX(e);if(!dQ(n,t))throw Error("Invalid date format");let r=new Date(n);return t&&(r=(0,z.qg)(n,t,new Date)),new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()))},Ld=/\s*[–—]\s*|\s-\s/,Lp=e=>{if(!dW(e))throw Error("Invalid number format");let t=1;return/k$/i.test(e)&&(t=1e3,e=e.slice(0,-1)),/m$/i.test(e)&&(t=1e6,e=e.slice(0,-1)),/b$/i.test(e)&&(t=1e9,e=e.slice(0,-1)),/t$/i.test(e)&&(t=1e12,e=e.slice(0,-1)),Number(e.split(",").join(""))*t},Lh="Invalid percentage format",Lg=e=>e instanceof Date?e1.op.timestamp(e):e;function Lf(e){if("number"!=typeof e)throw Error("Value must be numeric to use numeric comparison operators")}function Lm(e){if("string"!=typeof e)throw Error("Value must be a string to use string comparison operators")}let Ly=[],Lb=(e,t)=>{if(null==e)return null;try{return"string"==typeof e?((e,t)=>{let n=e.trim();switch(t.type){case gP.Decimal:case gP.Integer:case gP.Duration:return Lp(n);case gP.Percentage:return(e=>{if(!pY(e))throw Error(Lh);let t=Number(e.replace(/%/g,"").replace(/,/g,""))/100;if(Number.isNaN(t))throw Error(Lh);return t})(n);case gP.Currency:return(e=>{if(!pB(e))throw Error("Invalid currency format");return Lp(pF(e))})(n);case gP.Datetime:case gP.Date:case gP.Year:case gP.MonthYear:case gP.Month:case gP.DayMonth:case gP.Quarter:return Lc(n,t.dateFormat);case gP.WeeklyDateRange:case gP.WeeklyDateRangeWithYear:return((e,t)=>{let[n,r]=(e=>{let[t,n]=e.split(Ld);return[null==t?void 0:t.trim(),null==n?void 0:n.trim()]})(e);if(!n||!r)throw Error("Invalid weekly date range format");return Lc(n,t)})(n,t.dateFormat);case gP.Text:case gP.Boolean:return n}})(e,t):e}catch(e){return null}},Lx=(e,t,n,r)=>{let i=((e,t)=>hE(t)?t.xAxisProperties[0]:hH(t)?t.labelProperty:e.find(e=>!ck(e.dataType.type)))(n,t);if(!i)return Ly;let o=new uh;return(e=>{let{chartData:t,view:n}=e,r=t.map(e=>Object.fromEntries(n.properties.map(t=>[t.key,e[t.originalKey]])));return((e,t)=>{var n,r,i,o,l;let a,s,u,c=[];e.groupBy&&(c.push((i=e.groupBy,o=e.weekStartsOn,e=>e.groupby({[i.key]:(0,e1.ih)(e=>(e=>{var t;let{rowValue:n,timeUnit:r,weekStartsOn:i=1}=e;if(!r||!dQ(t=n)||!(t instanceof Date||"number"==typeof t))return n;switch(r){case"year":return e1.op.utcdatetime(e1.op.utcyear(n),0,1);case"quarter":{let e=3*Math.floor(e1.op.utcmonth(n)/3);return e1.op.utcdatetime(e1.op.utcyear(n),e,1)}case"month":return e1.op.utcdatetime(e1.op.utcyear(n),e1.op.utcmonth(n),1);case"week":{let e=(0,e0.k)(n,{weekStartsOn:i});return e1.op.utcdatetime(e.getFullYear(),e.getMonth(),e.getDate())}case"day":return e1.op.utcdatetime(e1.op.utcyear(n),e1.op.utcmonth(n),e1.op.utcdate(n));default:return n}})({timeUnit:i.timeUnit,weekStartsOn:o,rowValue:e[i.key]}))}))),c.push((a=e.properties,s=e.groupBy,e=>{let t=a.filter(e=>e.aggregation&&e.key!==s.key);return e.rollup(t.reduce((e,t)=>{let{aggregation:n,key:r}=t;return n?Object.assign(Object.assign({},e),{[r]:e1.op[n](r)}):e},{}))}))),(null==(n=e.filters)?void 0:n.length)&&c.push((u=e.filters,e=>e.filter((0,e1.ih)(t=>u.flatMap(t=>"within last"===t.operator?((e,t)=>{let n=t.rollup({max:e1.op.max(e.key)}).object(),r=e1.op.timestamp((0,e2.D)(n.max)),i=e1.op.timestamp((0,e2.D)(((e,t,n)=>{switch(e){case"day":return(0,e5.e)(n,t);case"week":return(0,e9.k)(n,t);case"month":return(0,e3.a)(n,t);case"quarter":return(0,e7.c)(n,t);case"year":return(0,e4.d)(n,t)}})(e.timeUnit,e.value,r)));return[{key:e.key,operator:">=",value:i},{key:e.key,operator:"<=",value:r}]})(t,e):t).every(e=>(e=>{let{first:t,last:n,operator:r}=e,[i,o]=[Lg(t),Lg(n)],l=uE.safeParse(r);if(l.success)return((e,t,n)=>{if(null==t)return!0;switch(Lf(t),Lf(n),e){case">":return t>n;case">=":return t>=n;case"<":return t{switch(Lm(t),Lm(n),e){case"contains":return e1.op.split(e1.op.upper(t),e1.op.upper(n),void 0).length>1;case"does not contain":return 1===e1.op.split(e1.op.upper(t),e1.op.upper(n),void 0).length}})(a.data,i,o);if("==="===r)return i===o;if("!=="===r)return i!==o;throw Error("Operator ".concat(r," not supported"))})({first:t[e.key],last:e.value,operator:e.operator})))))),(null==(r=e.sortBy)?void 0:r.length)&&c.push((l=e.sortBy,e=>e.orderby(...l.map(e=>"desc"===e.direction?(0,e1.i8)(e.key):e.key))));let d=e.properties.map(e=>e.key);return c.reduce((e,t)=>t(e),(0,e1.HT)(t).select(d)).objects()})(n,r)})({chartData:e.filter(hT).map(e=>{let t=Lb(e[i.key],i.dataType),r=i.key===PK?{}:{[i.key]:t};return LC(i,t)&&o.incrementYearIfNeeded(t),n.forEach(t=>{if(t.key===i.key)return;if(t.key===PK){let n=e[i.key];return void(r[t.key]=Lb(n,t.dataType))}let n=e[t.key];r[t.key]=Lb(n,t.dataType)}),r}),view:r})},LC=(e,t)=>!!(0,D.f)(t)&&cw(e.dataType.type),Lv=()=>[],Lj=()=>({theme:"graphy",palette:"graphy",borderStroke:dg.border,borderType:"gradient",borderColor:"lilac",shouldHideCaption:!0,shouldHideSourceSection:!0,shouldHideLogo:!1}),LA=()=>({decimalPlaces:"auto",abbreviation:"auto"}),Lw=[...uJ,...uq,"waterfall","combo","funnel"],Lk=(e,t)=>{let n=0;return 1===e?n=.75/t:e>1&&(n=.7/e/t+.2),{innerPadding:n,outerPadding:.5*n}},LP=[...uJ,...uq,"heatmap","combo"],LS=(e,t)=>{let n=t.getTime()-e.getTime();return e.getFullYear()===t.getFullYear()-1&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()?"yearly":e.getMonth()+1===t.getMonth()||11===e.getMonth()&&0===t.getMonth()&&e.getFullYear()+1===t.getFullYear()?"monthly":6048e5===n?"weekly":864e5===n?"daily":36e5===n?"hourly":null},LL=e=>{let{vizType:t,children:n,aestheticMappings:r,data:i,options:o,xGoalValue:a,yGoalValue:s,comboPlotAxisCount:u="double",flipAxes:c}=e,{x:d,y:p,size:g,yValue:f,group:m,xStackLower:y,xStackUpper:b,yStackLower:x,yStackUpper:C}=r,v=b3("plotWidth"),j=b3("plotHeight"),A=gG(e=>e.computedConfig.comboPlotType),w=gG(e=>hE(e.computedConfig)?e.computedConfig.yAxisProperties:[]),k=c?j:v,P=c?v:j,S=(0,M.useMemo)(()=>(e=>{let{vizType:t,data:n,x:r,y:i,group:o}=e;if(!r||!i||!Lw.includes(t))return{innerPadding:0,outerPadding:0};let l=[...new Set(n.getValues(r))].length;if(!yb(o))return Lk(l,1);switch(t){case"barStacked":case"columnStacked":case"barStackedFill":case"columnStackedFill":{let{barGroupKeys:e}=yU({vizType:t,observations:[...n],x:r,y:i,group:o});return Lk(l,0===e.length?1:e.length)}default:{let{partitionKeys:e}=y_({observations:[...n],group:o});return Lk(l,e.length)}}})({vizType:t,data:i,x:d,y:p,group:m}),[i,m,t,d,p]),L=(e=>{let{data:t,x:n,xStackLower:r,xStackUpper:i,comboPlotType:o,plotMainSize:a,innerPadding:s=0,outerPadding:u=0,xGoalValue:c,yGoalValue:d}=e,p=n?t.getType(n):gP.Decimal,h=gG(e=>e.computedConfig.type),g=(0,M.useMemo)(()=>n?[...new Set(t.getValues(n))]:[],[t,n]),f=(0,M.useMemo)(()=>y5(p,c)&&y3(d)?[...new Set([...g,c])]:g,[c,p,g,d]),m=(0,M.useMemo)(()=>bw({vizType:h,orientation:l.X,comboPlotType:o,values:f,dataType:p,range:[0,a],innerPadding:s,outerPadding:u}),[s,u,a,o,p,f,h]),y=(0,M.useMemo)(()=>bA({data:t,dimensionSize:a,lowerKey:r,upperKey:i}),[t,a,r,i]),b=(0,M.useMemo)(()=>bM({orientation:l.X,vizType:h,comboPlotType:o,scale:m,dataType:p,getValue:e=>e[n]}),[h,o,n,m,p]),x=(0,M.useMemo)(()=>{let e=bw({orientation:l.X,vizType:h,comboPlotType:o,values:f,dataType:p,range:[0,300],innerPadding:s,outerPadding:u});return bM({orientation:l.X,vizType:h,comboPlotType:o,scale:e,dataType:p,getValue:e=>e[n]})},[s,u,h,o,n,p,f]),C=(0,M.useMemo)(()=>bO({scale:m,dataType:p}),[m,p]),v=bm(m)&&ck(p),j="bandwidth"in m;return{xScale:m,xStackScale:y,getXPosition:b,getXAxisPosition:C,getNonResponsiveXPosition:x,hasPositiveAndNegativeXValues:v,xType:p,xValues:g,isBandScale:j,get xBandwidth(){return j?m.bandwidth():null},get xStep(){return j?m.step():null},get xBandOuterPadding(){return j?m.paddingOuter():null}}})(Object.assign(Object.assign({data:i,x:d,xStackLower:y,xStackUpper:b,comboPlotType:A,plotMainSize:k},S),{xGoalValue:a,yGoalValue:s})),O=(0,M.useMemo)(()=>(e=>{let{xScale:t,xBandwidth:n,xType:r,plotMainSize:i}=e,o=((e,t,n)=>{if(null!==t){let r=e.domain().length>=1?e.domain()[0]:void 0,i=r&&null!==t?e(r):void 0;if(void 0!==i)return[i,n-i-(null!=t?t:0)]}return[0,n]})(t,n,i),l=((e,t)=>{if(!cA(t)||e.domain().length<1)return null;let n=e.domain().map(e=>{try{let t=yj(e);return t?fa(t):null}catch(e){return null}}).filter(pM),r=n[0],i=n[n.length-1];return r&&i?[r,i]:null})(t,r),a=l?(0,N.A)().domain(l).range(o):(0,N.A)();return{timeseriesBarScale:a,getTimeseriesBarAxisPosition:e=>null===e?null:a(fa(e))+(null!=n?n:0)/2}})({xScale:L.xScale,xBandwidth:L.xBandwidth,xType:L.xType,plotMainSize:k}),[k,L.xBandwidth,L.xScale,L.xType]),T=(0,M.useMemo)(()=>(e=>{let{vizType:t,xType:n,xValues:r}=e;try{let e=r.filter(pM).map(fa);return LP.includes(t)&&cA(n)&&n!==gP.WeeklyDateRange&&n!==gP.WeeklyDateRangeWithYear&&(e=>{if(e.length<2)return!0;let t=LS(e[0],e[1]);if(!t)return!1;for(let n=1;n(e=>{let t,{vizType:n,comboPlotType:r,data:i,x:o,y:l,group:a,shouldStartFromZero:s,customStartFrom:u,customEndAt:c,yGoalValue:d,comboPlotAxisCount:p,yAxisProperties:h}=e,g="number"==typeof u?"custom":s?"zero":"auto";if(yb(a)){if(void 0!==o&&y4.includes(n))return y6({vizType:n,data:i,x:o,y:l,group:a,yGoalValue:d,customEndAt:c});if("combo"===n){if("grouped-bars"===r||"lines"===r)return(e=>{var t,n;let{data:r,y:i,group:o,startFrom:l,customStartFrom:a,customEndAt:s,comboPlotAxisCount:u,comboPlotType:c,yGoalValue:d,yAxisProperties:p}=e,{primaryDomainKeys:h}=y7({yAxisProperties:p,comboPlotAxisCount:u,comboPlotType:c,partitionKeys:yA({data:r,group:o})}),g=[...r].filter(e=>h.includes(yC(e[o[0].variableKey]))).map(e=>e[i]).filter(pM).map(fl);y3(d)&&(g=[...g,d]);let f=[null!=(t=(0,el.A)(g))?t:0,null!=(n=(0,eo.A)(g))?n:0],m=null!=s?s:f[1];return"zero"===l?[Math.min(0,f[0]),Math.max(0,m)]:"custom"===l&&"number"==typeof a?[Math.min(f[0],a),Math.max(m,a)]:f})({data:i,y:l,group:a,customStartFrom:u,customEndAt:c,startFrom:"grouped-bars"===r||"zero"===g&&"lines"===r?"zero":g,yGoalValue:d,comboPlotAxisCount:p,comboPlotType:r,yAxisProperties:h});if(void 0!==o&&"stacked-bars"===r){let{secondaryGeomKey:e}=y7({yAxisProperties:h,comboPlotAxisCount:p,comboPlotType:r,partitionKeys:yA({data:i,group:a})});return y6({vizType:n,data:i,x:o,y:l,group:a,yGoalValue:d,secondaryGeomKey:e,comboPlotAxisCount:p})}}}return"heatmap"===n?(t=i.getValues(l),(0,ea.A)(t,yC)):"waterfall"===n?(e=>{let{data:t,y:n,startFrom:r,customStartFrom:i,customEndAt:o}=e,l=t.getValues(n).filter(pM).map(fl).slice(0,-1),a=0,s=1/0,u=-1/0;for(let e of l)(a+=e)>u&&(u=a),a{let{data:t,y:n,vizType:r,startFrom:i,customStartFrom:o,customEndAt:l,yGoalValue:a}=e,s=t.getValues(n);y3(a)&&(s=[...s,a]);let u=(0,ei.A)(s.filter(pM),fl),c=void 0===u[0]&&void 0===u[1]?[0,0]:u,d=null!=l?l:c[1],p=null!=o?o:c[0];return[...uJ,...uq,"funnel"].includes(r)||"zero"===i?[Math.min(0,p),Math.max(0,d)]:[p,d]})({data:i,y:l,vizType:n,startFrom:g,customStartFrom:u,customEndAt:c,yGoalValue:d})})({vizType:t,comboPlotType:A,data:i,x:d,y:p,group:m,shouldStartFromZero:null==o?void 0:o.shouldStartFromZero,customStartFrom:null==o?void 0:o.customYAxisStartFrom,customEndAt:null==o?void 0:o.customYAxisEndAt,comboPlotAxisCount:null==o?void 0:o.comboPlotAxisCount,yGoalValue:s,yAxisProperties:w}),[t,A,i,d,p,m,null==o?void 0:o.shouldStartFromZero,null==o?void 0:o.customYAxisStartFrom,null==o?void 0:o.customYAxisEndAt,null==o?void 0:o.comboPlotAxisCount,s,w]),z=(e=>{let{flipAxes:t,y:n,yStackLower:r,yStackUpper:i,yValue:o,data:a,plotCrossSize:s,domain:u,useLogScale:c,customStartFrom:d,customEndAt:p}=e,h=gG(e=>e.computedConfig.type),g=gG(e=>e.computedConfig.comboPlotType),f=a.getType(n),m=(0,M.useMemo)(()=>bw({vizType:h,orientation:l.Y,comboPlotType:g,dataType:f,customDomain:u,customStartFrom:d,customEndAt:p,range:bU(h,s,t),useLogScale:c}),[p,d,u,t,s,g,c,f,h]),y=(0,M.useMemo)(()=>bA({data:a,dimensionSize:s,lowerKey:r,upperKey:i}),[a,s,r,i]),b=(0,M.useMemo)(()=>bM({orientation:l.Y,comboPlotType:g,vizType:h,scale:m,dataType:f,getValue:e=>e[n]}),[g,h,n,m,f]),x=(0,M.useMemo)(()=>{let e=bw({vizType:h,orientation:l.Y,comboPlotType:g,dataType:f,customDomain:u,customStartFrom:d,customEndAt:p,range:bU(h,300,t),useLogScale:c});return bM({orientation:l.Y,comboPlotType:g,vizType:h,scale:e,dataType:f,getValue:e=>e[n]})},[p,d,u,t,g,c,n,f,h]),C="ticks"in m?m(0):null,v=(0,M.useMemo)(()=>bO({scale:m,dataType:f}),[m,f]),j=bm(m),A=(0,M.useMemo)(()=>bM({orientation:l.Y,comboPlotType:g,vizType:h,scale:m,dataType:f,getValue:e=>{if(!o||!n)return 0;let t=e[o],r=e[n];return"number"==typeof t&&"number"==typeof r&&t!==r?r-t:fl(m.domain()[0])}}),[g,h,n,m,f,o]),w=(0,M.useMemo)(()=>a.exists(bE)?bM({orientation:l.Y,vizType:h,comboPlotType:g,scale:m,dataType:a.getType(bE),getValue:e=>e[bE]}):b,[a,b,g,h,m]),k=(0,M.useMemo)(()=>a.exists(bH)?bM({orientation:l.Y,vizType:h,comboPlotType:g,scale:m,dataType:a.getType(bH),getValue:e=>e[bH]}):b,[a,b,g,h,m]);return{yScale:m,yStackScale:y,getYPosition:b,yOrigin:C,getLowerYPosition:A,getYAxisPosition:v,getNonResponsiveYPosition:x,hasPositiveAndNegativeYValues:j,get yBandwidth(){return"heatmap"===h&&cv(f)?m.bandwidth():null},getYStartPosition:w,getYEndPosition:k}})({flipAxes:null!=c&&c,y:p,yValue:f,yStackLower:x,yStackUpper:C,data:i,plotCrossSize:P,domain:I,useLogScale:null==o?void 0:o.useLogScale,customStartFrom:null==o?void 0:o.customYAxisStartFrom,customEndAt:null==o?void 0:o.customYAxisEndAt}),E=(e=>{let{property:t,data:n}=e;return(0,M.useMemo)(()=>{let e=((e,t)=>t?[...new Set(e.getValues(t))]:[])(n,t),r=(e=>{let{values:t=[],range:n}=e,r=(e=>{let t=(0,ei.A)(e.filter(pM),fl);return void 0===t[0]||void 0===t[1]?[0,0]:t})(t);return(0,G.A)().domain(r).range(n)})({values:e,range:[0,1]});return{sizeScale:r,sizeValues:e,getSize:e=>{let n=t?e[t]:null;return r(null===n?0:fl(n))}}},[t,n])})({property:g,data:i}),H=(0,M.useMemo)(()=>(e=>{let{data:t,y:n,group:r,comboPlotType:i,hasSecondaryAxis:o,shouldStartFromZero:l,customStartFrom:a,customEndAt:s,yGoalValue:u,comboPlotAxisCount:c,yAxisProperties:d}=e;if(!o||!yb(r))return[0,0];let p="number"==typeof a?"custom":l?"zero":"auto";return(e=>{var t,n;let{data:r,y:i,group:o,startFrom:l,customStartFrom:a,customEndAt:s,yGoalValue:u,comboPlotAxisCount:c,comboPlotType:d,yAxisProperties:p}=e,{secondaryDomainKey:h}=y7({yAxisProperties:p,comboPlotAxisCount:c,comboPlotType:d,partitionKeys:yA({data:r,group:o})});if(!h)return[0,0];let g=[...r].filter(e=>yC(e[o[0].variableKey])===h).map(e=>e[i]).filter(pM).map(fl);y3(u)&&(g=[...g,fl(u)]);let f=[null!=(t=(0,el.A)(g))?t:0,null!=(n=(0,eo.A)(g))?n:0],m=null!=s?s:f[1];return"zero"===l?[Math.min(0,f[0]),Math.max(0,m)]:"custom"===l&&"number"==typeof a?[Math.min(f[0],a),Math.max(m,a)]:f})({data:t,y:n,group:r,startFrom:"lines"===i&&"zero"===p||"lines"!==i?"zero":p,customStartFrom:a,customEndAt:s,yGoalValue:u,comboPlotAxisCount:c,comboPlotType:i,yAxisProperties:d})})({data:i,y:p,group:m,comboPlotType:A,hasSecondaryAxis:D,shouldStartFromZero:null==o?void 0:o.shouldStartFromZero,customStartFrom:null==o?void 0:o.customYAxisStartFrom,customEndAt:null==o?void 0:o.customYAxisEndAt,comboPlotAxisCount:null==o?void 0:o.comboPlotAxisCount,yGoalValue:s,yAxisProperties:w}),[i,m,A,D,null==o?void 0:o.comboPlotAxisCount,null==o?void 0:o.customYAxisEndAt,null==o?void 0:o.customYAxisStartFrom,null==o?void 0:o.shouldStartFromZero,p,s,w]),V=(e=>{let{flipAxes:t,vizType:n,comboPlotType:r,y:i,data:o,plotCrossSize:a,domain:s,useLogScale:u}=e,c=i?o.getType(i):gP.Decimal,d=(0,M.useMemo)(()=>bw({vizType:n,orientation:l.Y,comboPlotType:r,dataType:c,range:bU(n,a,t),customDomain:s,useLogScale:u}),[s,t,a,r,u,c,n]),p=(0,M.useMemo)(()=>bM({orientation:l.Y,vizType:n,comboPlotType:r,scale:d,dataType:c,getValue:e=>e[i]}),[r,d,i,c,n]),h=(0,M.useMemo)(()=>bO({scale:d,dataType:c}),[d,c]);return{secondaryYScale:d,getSecondaryYPosition:p,getSecondaryYAxisPosition:h,getNonResponsiveSecondaryYAxisPosition:(0,M.useMemo)(()=>{let e=bw({orientation:l.Y,comboPlotType:r,vizType:n,dataType:c,range:bU(n,300,t),customDomain:s,useLogScale:u});return bM({orientation:l.Y,vizType:n,comboPlotType:r,scale:e,dataType:c,getValue:e=>e[i]})},[s,t,r,n,u,i,c])}})({flipAxes:null!=c&&c,vizType:t,y:p,data:i,comboPlotType:A,plotCrossSize:P,domain:H,useLogScale:null==o?void 0:o.useLogScale}),{_setXValues:F,_setYDomain:B,_setSecondaryYDomain:R}=PE();(0,M.useEffect)(()=>{F(L.xValues.map(yj))},[F,L.xValues]),(0,M.useEffect)(()=>{B(I)},[B,I]),(0,M.useEffect)(()=>{R(H)},[R,H]);let Y=(0,M.useMemo)(()=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({flipAxes:null!=c&&c},L),O),{isTimeseriesBarAxis:T,hasSecondaryAxis:D}),z),V),E),{options:o}),[c,L,O,T,D,z,V,E,o]);return(0,h.jsx)(PT.Provider,{value:Y,children:n})},LM=(0,p.I4)(ed.P.div)(oz()),LO=p.I4.div(oV(),e=>{let{$isRotated:t}=e;return t?(0,p.AH)(oE()):(0,p.AH)(oH())}),LT=hG(.4),LD=hG(.3),LI=p.I4.div(oB(),sy,uv("textPrimary"),e=>{let{$isDimmed:t}=e;return t?.5:1},e=>{let{$isFilled:t}=e;return t&&(0,p.AH)(oF(),sz.sm,LT,LD)}),Lz=e=>{let{isFilled:t,isDimmed:n,textColor:r,backgroundColor:i,children:o}=e;return(0,h.jsx)(LI,{$isFilled:t,$isDimmed:n,style:{color:r,backgroundColor:i},children:o})},LE=M.memo(function(e){let{isFilled:t,textColor:n,backgroundColor:r,isDimmed:i,formattedLabel:o,fits:l,isRotated:a,xPosition:s,yPosition:u}=e,{flipAxes:c}=PD();return l?(0,h.jsx)(LM,{initial:!1,animate:{[c?"y":"x"]:s,[c?"x":"y"]:u},transition:fq,children:(0,h.jsx)(LO,{$isRotated:a,children:(0,h.jsx)(Lz,{isFilled:null!=t&&t,textColor:n,backgroundColor:r,isDimmed:i,children:o.rich})})}):null}),LH=(0,p.I4)(ed.P.div)(oR()),LV=yt[0],LF="solid",LB="diagonal-hatch-pattern",LR=()=>{let{values:e}=mh();return(0,h.jsx)("pattern",{id:LB,patternUnits:"userSpaceOnUse",patternTransform:"rotate(-45)",width:"20",height:"10",x:"0",y:"0",children:(0,h.jsx)("rect",{x:"0",y:"0",width:"20",height:"5",fill:e.grey100,fillOpacity:.5})})},LY=()=>"url(#".concat(LB,")"),LG=e=>{let{flipAxes:t,bandwidth:n,position:r,start:i,end:o,opacity:l,fill:a=LV,fillType:s=LF,roundCorners:u=!0,isDimmed:c=!1,backgroundColor:d}=e,{highlightStyle:p,dimAmount:g}=yE(),f=LU(t,n,r,i,o),m=bc({theme:mh(),fill:a,opacity:l,isDimmed:c,highlightStyle:p,backgroundColor:d,dimAmount:g}),y="number"==typeof u?u:u?bs(n):0;return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(ed.P.rect,{initial:!1,animate:f,transition:fq,fill:m,rx:y,role:"graphics-symbol img","aria-roledescription":"bar","aria-label":"Bar"}),"hatched"===s&&(0,h.jsx)(ed.P.rect,{initial:!1,animate:f,transition:fq,fill:LY(),rx:y})]})},LU=(e,t,n,r,i)=>({[e?"y":"x"]:n,[e?"x":"y"]:Math.min(i,r),[e?"height":"width"]:Math.max(t,0),[e?"width":"height"]:Math.max(Math.abs(r-i),0)}),LW=e=>{var{shapeId:t,blur:n}=e,r=sJ(e,["shapeId","blur"]);let i="neon-blur-".concat((0,M.useId)()),o="url(#".concat(i,")");return(0,h.jsxs)(h.Fragment,{children:[LK(i,n),(0,h.jsx)("use",Object.assign({href:"#".concat(t),filter:o},r))]})},LN=e=>{let{blur:t}=e,n="neon-blur-".concat((0,M.useId)());return{neonFilter:"url(#".concat(n,")"),renderDefs:()=>LK(n,t)}},LK=(e,t)=>(0,h.jsx)("defs",{children:(0,h.jsxs)("filter",{id:e,colorInterpolationFilters:"sRGB",children:[(0,h.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,h.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,h.jsx)("feGaussianBlur",{in:"SourceGraphic",stdDeviation:t})]})}),LZ=e=>{var{flipAxes:t,mainPosition:n,crossPosition:r,size:i,fill:o,stroke:l,strokeWidth:a,hasShadow:s,effect:u,opacity:c,includeOuterBorder:d,backgroundColor:p}=e,g=sJ(e,["flipAxes","mainPosition","crossPosition","size","fill","stroke","strokeWidth","hasShadow","effect","opacity","includeOuterBorder","backgroundColor"]);let f=LX(t,n,r,i),m=s?L_():{},y=(0,M.useId)();return(0,h.jsxs)(h.Fragment,{children:["neon"===u&&(0,h.jsx)(LW,{shapeId:y,blur:2}),d&&(0,h.jsx)(ed.P.circle,{id:y,initial:!1,transition:fq,stroke:p,fill:o,variants:{animate:Object.assign(Object.assign({},f),{opacity:c,r:f.r+1.5})},animate:"animate",strokeWidth:1.5}),(0,h.jsx)(ed.P.circle,Object.assign({id:y,strokeWidth:a,initial:!1,transition:fq,stroke:l,fill:o,variants:{animate:Object.assign(Object.assign({},f),{opacity:c})},animate:"animate",style:m},g))]})},LX=(e,t,n,r)=>({cx:e?n:t,cy:e?t:n,r:r/2}),L_=()=>({filter:"\n drop-shadow(0 0 4px rgba(15, 15, 24, 0.12))\n drop-shadow(0 4px 4px rgba(14, 14, 52, 0.08))\n "}),LQ=e=>{var{observations:t,lineGenerator:n,color:r,clipPath:i,lineType:o="solid",isDimmed:l,effect:a,backgroundColor:s,lineThickness:u,showPoints:c,yAxisScale:d="primary"}=e,p=sJ(e,["observations","lineGenerator","color","clipPath","lineType","isDimmed","effect","backgroundColor","lineThickness","showPoints","yAxisScale"]);let{getXPosition:g,xBandwidth:f,getYPosition:m,getSecondaryYPosition:y}=PD(),b=b3("plotWidth"),x=mu("textScale"),C=(0,M.useMemo)(()=>n(t),[n,t]),v=y2(null!=C?C:"M0,0",fq),{neonFilter:j,renderDefs:A}=LN({blur:3}),{isPointHighlighted:w}=yE(),k=L$({color:r,isDimmed:l,backgroundColor:s}),P=L1({color:r,backgroundColor:s});if(!C)return null;let S=null!=u?u:LJ(x,b,t),L=bh(S,o),O="primary"===d?m:y,T=Object.assign(Object.assign({stroke:k},L),{d:v,clipPath:i,fill:"none"});return(0,h.jsxs)(h.Fragment,{children:["neon"===a&&A(),"neon"===a&&(0,h.jsx)(ed.P.path,Object.assign({},T,{strokeWidth:2*S,filter:j})),(0,h.jsx)(ed.P.path,Object.assign({},p,T)),t.map((e,t)=>{let n=w(e);if(!c&&!n)return null;let r=g(e)+(null!=f?f:0)/2,i=O(e),o=Lq(S,n),s=l&&!w(e);return(0,h.jsx)(LZ,{strokeWidth:.5*S,effect:a,hasShadow:n,mainPosition:r,crossPosition:i,size:o,fill:s?P.dimmedFill:P.defaultFill,stroke:s?P.dimmedStroke:P.defaultStroke},"".concat(t,"-").concat(k))})]})},LJ=(e,t,n)=>n.length?2.5*Math.max(.4,Math.min(1,t/n.length/10))*e:1,Lq=(e,t)=>Math.max(3,e*(t?3:2)),L$=e=>{let t=mh(),{highlightStyle:n,dimAmount:r}=yE(),{color:i=LV,isDimmed:o,backgroundColor:l}=e;return(0,M.useMemo)(()=>bg({theme:t,color:i,isDimmed:o,highlightStyle:n,backgroundColor:l,dimAmount:r}),[t,i,o,n,l,r])},L1=e=>{let t=mh(),{highlightStyle:n}=yE(),{color:r=LV,backgroundColor:i}=e;return(0,M.useMemo)(()=>{let e=bg({theme:t,color:r,isDimmed:!1,highlightStyle:n,backgroundColor:i}),o=uk(t.values.grey0,e,.6),l=bg({theme:t,color:r,isDimmed:!0,highlightStyle:n,backgroundColor:i});return{defaultFill:e,defaultStroke:o,dimmedFill:l,dimmedStroke:uk(t.values.grey0,l,.6)}},[t,r,n,i])},L0={solid:{strokeWidth:1},dashed:{strokeWidth:1,strokeDasharray:"4 4"},gridLine:{strokeWidth:1,strokeDashoffset:"0",strokeDasharray:"2 3",strokeLinecap:"round"},tickLine:{strokeWidth:1,strokeDashoffset:"-1",strokeDasharray:"2 3",strokeLinecap:"round"},targetLine:{strokeWidth:1,strokeDasharray:"2 3",strokeLinecap:"round",strokeMiterlimit:16}},L2=e=>{let{orientation:t,origin:n,end:r,crossOrigin:i,stroke:o,ruleStyle:a="solid"}=e,s=Object.assign({stroke:o,pointerEvents:"none",fill:"transparent"},L0[a]);return t===l.X?(0,h.jsx)("line",Object.assign({},s,{x1:n||0,y1:i,x2:r,y2:i})):(0,h.jsx)("line",Object.assign({},s,{x1:i,y1:n||0,x2:i,y2:r}))},L5=e=>{let{observations:t,areaGenerator:n,color:r=LV,backgroundColor:i,clipPath:o,flipAxes:l,variant:a="solid",isDimmed:s}=e,u=L3({backgroundColor:i,color:r,isDimmed:s}),c="area_gradient_".concat((0,M.useId)()),d=n(t),p=y2(null!=d?d:"M0,0",fq);if(!d)return null;let g="solid"===a?u:"url(#".concat(c,")");return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("defs",{children:(0,h.jsxs)("linearGradient",{id:c,gradientTransform:"rotate(".concat(l?180:90," 0.5 0.5)"),children:[(0,h.jsx)("stop",{offset:"0%",stopColor:r}),(0,h.jsx)("stop",{offset:"70%",stopColor:r,stopOpacity:0}),(0,h.jsx)("stop",{offset:"100%",stopColor:r,stopOpacity:0})]})}),(0,h.jsx)(ed.P.g,{clipPath:o,children:(0,h.jsx)(ed.P.path,{initial:{opacity:0},animate:{opacity:1,transition:{delay:.1}},exit:{opacity:0},d:p,stroke:"none",fill:g,fillOpacity:s?"solid"===a?.1:.04:"solid"===a?.3:.15,role:"graphics-symbol img","aria-roledescription":"area"})})]})},L3=e=>{let t=mh(),{highlightStyle:n,dimAmount:r}=yE(),{color:i=LV,isDimmed:o,backgroundColor:l}=e;return(0,M.useMemo)(()=>bg({theme:t,color:i,isDimmed:o,highlightStyle:n,backgroundColor:l,dimAmount:r}),[t,i,o,n,l,r])},L7=(0,M.createContext)(null),L9=()=>{let e=(0,M.useContext)(L7);if(!e)throw Error("useVisibleSeriesContext must be used within a VisibleSeriesProvider");return e},L4=e=>{let{data:t,group:n,label:r,vizType:i,children:o}=e,[l,a]=(0,M.useState)([]),s=(0,M.useCallback)(e=>{e&&a(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},[]),u=(0,M.useMemo)(()=>[...t].filter(e=>{var t;let o=u1.includes(i)?r:null==(t=null==n?void 0:n[0])?void 0:t.variableKey;if(!o)return!0;let a=yC(e[o]);return!l.includes(a)}),[t,i,r,n,l]),c=(0,M.useCallback)(e=>!!e&&l.includes(e),[l]),d=(0,M.useMemo)(()=>({onToggleSeriesVisibility:s,visibleObservations:u,isHiddenSeries:c}),[s,u,c]);return(0,h.jsx)(L7.Provider,{value:d,children:o})},L6=p.I4.div(oY(),sj),L8=e=>{var{children:t,maxWidth:n}=e,r=sJ(e,["children","maxWidth"]);return(0,h.jsx)(L6,Object.assign({},r,{style:Object.assign(Object.assign({},r.style),{maxWidth:"".concat(n,"px")}),children:t}))},Me=e=>{let{label:t,startValue:n,plotMaxWidth:r,plotMaxHeight:i,radius:o,total:l,maxCx:a,maxCy:s,previousLabels:u}=e,c=n+t.value/2,d=hY(c/l,o,a,s),{originX:p,originY:h}=(e=>({originX:e<.5?0:1,originY:+(e>.75||e<.25)}))(c/l),g=d.x-t.width*p,f=d.y-t.height*h;for(let e of u){let n=e.x,r=e.y,i=e.width,o=e.height;if(gn&&fr)return null}if(g<0||f<0)return Math.abs(Math.min(g,f));let m=g+t.width-r,y=f+t.height-i;return m>0||y>0?Math.abs(Math.max(m,y)):Object.assign(Object.assign({},t),{x:g,y:f})},Mt=e=>{let{radius:t,total:n,labels:r,plotMaxWidth:i,plotMaxHeight:o,maxCx:l,maxCy:a}=e,s=[],u=0,c=0;for(let e of r){let r=Me({previousLabels:s,startValue:u,label:e,plotMaxWidth:i,plotMaxHeight:o,radius:t,total:n,maxCx:l,maxCy:a});u+=e.value,"number"==typeof r?c=Math.max(r,c):null!==r&&s.push(r)}return c>0?c:s},Mn=gF(null),Mr=e=>{let{children:t,legendPosition:n,sideLegendWidth:r=0,shouldShowLabels:i,formatDataLabel:o,value:l,label:a}=e,s=mu("chartWidth"),u=mu("chartHeight"),c=8*!!i,d=yG(),p=s-r-32*("right"===n)/2,g=.3*p,{visibleObservations:f}=L9(),m=(0,M.useMemo)(()=>i?(e=>{let{observations:t,measureReactContent:n,labelMaxWidth:r,formatDataLabel:i,value:o,label:l}=e;return t.reduce((e,t)=>{var a;try{let s=fo(null!=(a=t.id)?a:""),u=t[o],c=l?t[l]:void 0;if(null==u||void 0===c)return e;let d=fl(u),p=i(d,c),{width:g,height:f}=n((0,h.jsx)(L8,{maxWidth:r,children:p.rich}));e.push({id:s,formatted:p,width:g,height:f,value:d})}catch(e){}return e},[])})({observations:f,measureReactContent:d,labelMaxWidth:g,value:l,label:a,formatDataLabel:o}):[],[i,f,d,g,l,a,o]),{labels:y,labelRadius:b}=(0,M.useMemo)(()=>(e=>{let{labels:t,plotMaxWidth:n,plotMaxHeight:r}=e,i=Math.min(n,r)/2,o=t.reduce((e,t)=>e+t.value,0),l=n/2,a=r/2,s=i,u=0,c=0;for(;"number"==typeof c&&u<100;)"number"==typeof(c=Mt({radius:s,total:o,labels:t,plotMaxWidth:n,plotMaxHeight:r,maxCx:l,maxCy:a}))&&(s-=c),u++;return{labelRadius:"number"==typeof c?i:s,labels:"number"==typeof c?[]:c}})({labels:m,plotMaxWidth:p,plotMaxHeight:u}),[m,p,u]),x=b-c,C=(0,M.useMemo)(()=>(e=>{let{labels:t,pieRadius:n,plotMaxWidth:r,plotMaxHeight:i}=e,o=r/2-n,l=i/2-n,a=Math.min(o,...t.map(e=>e.x)),s=Math.max(o+2*n,...t.map(e=>e.x+e.width)),u=Math.min(l,...t.map(e=>e.y));return{isPlotMeasured:!0,plotOffsetX:a,plotOffsetY:u,plotWidth:s-a,plotHeight:Math.max(l+2*n,...t.map(e=>e.y+e.height))-u}})({labels:y,pieRadius:x,plotMaxWidth:p,plotMaxHeight:u}),[y,x,u,p]),v=p/2-C.plotOffsetX,j=u/2-C.plotOffsetY,A=M.useMemo(()=>({pieRadius:x,pieCenterX:v,pieCenterY:j,labels:y,labelMaxWidth:g}),[x,v,j,y,g]);return(0,h.jsx)(Mn.Provider,{value:A,children:(0,h.jsx)(b5.Provider,{value:C,children:t})})},Mi=e=>gB(Mn,t=>{if(!t)throw Error("usePieLayoutValue must be used within PieLayoutProvider");return t[e]}),Mo=(e,t)=>"donut"===t?.5*e:0,Ml=(e,t)=>n=>e*(1-n)+t*n,Ma=e=>{let{arc:t,appearance:n,fillColor:r="transparent",isDimmed:i,fillType:o=LF,backgroundColor:l}=e,a=mh(),s=(0,M.useId)(),u=((e,t)=>{let n=(0,eu.d)(0);(0,M.useEffect)(()=>{let e=(0,ec.i)(0,1,Object.assign(Object.assign({},f1),{onUpdate:e=>n.set(e)}));return()=>e.stop()},[n]);let r=(0,eu.d)(e.startAngle),i=(0,eu.d)(e.endAngle);(0,M.useEffect)(()=>{let t=Ml(r.get(),e.startAngle),n=Ml(i.get(),e.endAngle),o=(0,ec.i)(0,1,Object.assign(Object.assign({},fq),{onUpdate:e=>{r.set(t(e)),i.set(n(e))}}));return()=>o.stop()},[e,i,r]);let o=(e=>{let t=Mi("pieRadius"),n=Mo(t,e);return(0,J.A)().innerRadius(n).outerRadius(t).cornerRadius(.02*t)})(t),l=(0,ep.G)([n,r,i],t=>{let[n,r,i]=t;return o(Object.assign(Object.assign({},e),{startAngle:r*n,endAngle:i*n}))});return(0,eh.K)()?o(e):l})(t,n),c=Mi("pieRadius"),d=((e,t,n)=>{let{isInHighlightMode:r}=xp(),i=xn(Math.abs((t+e)/2)),o=.03*n*Math.cos(i),l=.03*n*Math.sin(i),a=(()=>{let{overlayState:{activeHitbox:e}}=yk();if(!e)return[];let{dataPoints:t}=e;return t.filter(yO)})(),s=!r&&a.some(n=>n.startAngle===e&&n.endAngle===t),u=s?o:0,c=s?l:0;return{initial:{x:u,y:c},animate:{x:u,y:c},transition:fq}})(t.startAngle,t.endAngle,c),{highlightStyle:p,dimAmount:g}=yE(),f=bg({theme:a,color:r,isDimmed:i,backgroundColor:l,highlightStyle:p,dimAmount:g});return(0,h.jsxs)(ed.P.g,Object.assign({},d,{children:[(0,h.jsx)("defs",{children:(0,h.jsx)("mask",{id:s,children:(0,h.jsx)(ed.P.path,{d:u,fill:"white",strokeWidth:3,stroke:"black",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,h.jsx)(ed.P.path,{d:u,fill:f,mask:"url(#".concat(s,")"),role:"graphics-symbol img","aria-roledescription":"pie slice","aria-label":"Pie slice"}),"hatched"===o&&(0,h.jsx)(ed.P.path,{d:u,fill:LY()})]}))},Ms=()=>{let{sizeValues:e}=PD(),t=mu("chartWidth");return(0,M.useMemo)(()=>{let n=Math.max(.01*t,5),r=Math.min(.07*t,80),{adjustedMin:i,adjustedMax:o}=((e,t,n)=>{if(e<=1){let e=(t+n)/2;return{adjustedMin:e,adjustedMax:e}}return{adjustedMin:t,adjustedMax:n-n*(e=>e<=3?.6:.3*(e<=6))(e)}})(e.length,n,r);return{maxSize:o,minSize:i,computeBubbleSize:e=>i+e*(o-i)}},[t,e])},Mu=(e,t,n,r)=>t/2+LT+Math.min(0,(("inside"===e?n:r)-t-2*LT)/2),Mc={initial:{opacity:0},animate:{opacity:1},transition:{type:"spring",bounce:0,duration:.4,delay:.3}},Md=e=>{let{isEditable:t,isDefaultVisible:n,vizType:r,annotations:i,getDataPointId:o,showPercentage:l=!1,formatLabel:a,numberFormat:s}=e,u=mu("overPlotPortalId"),c=b3("plotOffsetX"),d=b3("plotOffsetY"),{flipAxes:p}=PD(),g=(e=>{let{isEditable:t,isDefaultVisible:n,vizType:r,annotations:i,getDataPointId:o,formatLabel:l,shouldShowPercentage:a,numberFormat:s}=e,{hitboxes:u,overlayState:{closestGeomDataPoint:c}}=yk(),{flipAxes:d}=PD(),{isBarHighlighted:p,isHighlighted:g,isPointHighlighted:f,isStackHighlighted:m}=yE(),y=(0,M.useMemo)(()=>u.flatMap(e=>e.dataPoints),[u]),b=(e=>{let{formatLabel:t=up,shouldShowPercentage:n,numberFormat:r}=e,i=(0,B.A)(),o=(0,M.useCallback)(e=>{let t=fI({intl:i,value:e,numberFormat:r});return{rich:t,plain:t}},[i,r]);return(0,M.useCallback)(e=>{let r=null;return n?r=e.percentage:yM(e)?r=yL(e)?e.alphaValue:e.yValue:yO(e)&&(r=e.pieValue),n?o(r,e):t(r,e)},[t,o,n])})({formatLabel:l,shouldShowPercentage:a,numberFormat:s}),x=(()=>{let{flipAxes:e,getSize:t}=PD(),{computeBubbleSize:n}=Ms(),r=gG(e=>e.computedConfig.type),i=b3("plotWidth"),o=b3("plotHeight"),l=e?i:o;return(0,M.useCallback)(i=>{let{dataPoint:o,measured:a,shouldRotate:s}=i,u={fits:!0,location:null,isRotated:!1,xPosition:0,yPosition:0};switch(o.type){case"bar":return Object.assign(Object.assign({},u),((e,t,n,r,i,o)=>{let l=bn(e.yValue),{availMainSize:a,availCrossSizeInside:s,availCrossSizeOutside:u}=((e,t,n,r)=>{let i=Math.abs(e.x0-e.x1),o=Math.abs(e.y0-e.y1);return{availMainSize:t?o:i,availCrossSizeInside:t?i:o,availCrossSizeOutside:t?n?r-e.x0:e.x1:n?e.y0:r-e.y1}})(e,r,l,i),c=r?t.height:t.width,d=r?t.width:t.height;return!n&&c<=a?d<=s?"waterfall"===o?(e=>({fits:!0,location:"inside",xPosition:e.xPosition,yPosition:e.yPosition}))(e):((e,t,n,r,i,o)=>{if("none"!==e.stackType)return{fits:!0,location:"inside",xPosition:e.x0+(e.x1-e.x0)/2,yPosition:e.y0+(e.y1-e.y0)/2};let l=Mu("inside",n,r,i);return{fits:!0,location:"inside",xPosition:t?e.xPosition+l*(o?-1:1):e.xPosition,yPosition:t?e.yPosition:e.yPosition+l*(o?1:-1)}})(e,r,d,s,u,l):"none"===e.stackType&&d<=u?"waterfall"===o?((e,t,n,r)=>({fits:!0,location:"outside",xPosition:e.xPosition,yPosition:e.yPosition-n/2-Mu("outside",t,n,r)}))(e,d,s,u):((e,t,n,r,i,o)=>{let l=t?e.xPosition:e.x0+(e.x1-e.x0)/2,a=e.yPosition,s=Mu("outside",n,r,i);return t?l+=s*(o?1:-1):a+=s*(o?-1:1),{fits:!0,location:"outside",xPosition:l,yPosition:a}})(e,r,d,s,u,l):{fits:!1}:!n||r||"waterfall"===o?{fits:!1}:c<=s?((e,t,n,r,i,o)=>{if(i>t)return{fits:!1};if("none"!==e.stackType)return{isRotated:!0,fits:!0,location:"inside",xPosition:e.x0+(e.x1-e.x0)/2,yPosition:e.y0+(e.y1-e.y0)/2-r/2};let l=Math.min(4,(n-i)/2-2*LD);return{isRotated:!0,fits:!0,location:"inside",xPosition:e.xPosition,yPosition:e.yPosition-r/2+LD+(r/2+l)*(o?1:-1)}})(e,a,s,c,d,l):"none"===e.stackType&&c<=u?((e,t,n,r,i)=>r>t?{fits:!1}:{isRotated:!0,fits:!0,location:"outside",xPosition:e.xPosition,yPosition:e.yPosition-n/2-LD+n/2*(i?-1:1)})(e,a,c,d,l):{fits:!1}})(o,a,s,e,l,r));case"line":return Object.assign(Object.assign({},u),(e=>({xPosition:e.xPosition,yPosition:e.yPosition-15}))(o));case"tile":return Object.assign(Object.assign({},u),((e,t)=>{let n=Math.abs(e.x0-e.x1),r=Math.abs(e.y0-e.y1);return t.width<=n&&t.height<=r?{xPosition:e.xPosition,yPosition:e.yPosition}:{fits:!1}})(o,a));case"pie":case"donut":return Object.assign(Object.assign({},u),((e,t)=>{let n=xr({position:.5,radius:"donut"===e.type?e.pieRadius-Mo(e.pieRadius,"donut")/2:2*e.pieRadius/3,startAngle:e.startAngle,endAngle:e.endAngle});return(e=>{let{x1:t,x2:n,y1:r,y2:i,startAngle:o,endAngle:l}=e,a=[t,i],s=[n,r],u=[n,i],c=e=>{let[t,n]=e,r=xt(Math.atan2(n,t));return r>=o&&r<=l};return c([t,r])&&c(a)&&c(s)&&c(u)})(Object.assign(Object.assign({},{x1:n.x-t.width/2,x2:n.x+t.width/2,y1:n.y-t.height/2,y2:n.y+t.height/2}),{startAngle:e.startAngle,endAngle:e.endAngle}))?{xPosition:e.pieCenterX+n.x,yPosition:e.pieCenterY+n.y}:{fits:!1}})(o,a));case"point":return Object.assign(Object.assign({},u),((e,t,n,r,i)=>{let o="bubble"===e?n(t(r.observation))/2+i.height/2:15;return{xPosition:r.xPosition,yPosition:r.yPosition-o}})(r,t,n,o,a))}},[e,l,r,t,n])})(),C=(()=>{let e=mh(),{isBarDimmed:t,isLineDimmed:n,highlightStyle:r,dimAmount:i}=yE(),o=(0,M.useCallback)((t,n)=>(e=>{let{theme:t,dataPoint:n,highlightStyle:r,isDimmed:i,dimAmount:o}=e,l=yS(n)?bc({theme:t,fill:n.vizColor,opacity:n.fillOpacity,isDimmed:i,dimAmount:o,highlightStyle:r}):n.vizColor,a=((e,t,n)=>{var r;let i;if(!yS(e)&&!yL(e)&&!yO(e))return"dark";try{i=eJ.Ay.mix(t.values.grey100,(0,eJ.Ay)(n),yO(e)?1:null!=(r=e.fillOpacity)?r:1)}catch(e){return"dark"}return eJ.Ay.contrast(i,t.values.black)>eJ.Ay.contrast(i,t.values.white)?"dark":"light"})(n,t,l),s="dark"===a?t.values.black:t.values.white;return{insideLabelBackgroundColor:l,outsideLabelBackgroundColor:uj(t.values.textPrimary,"dark"===a?.1:.3),readableTextColor:s}})({theme:e,dataPoint:t,highlightStyle:r,dimAmount:i,isDimmed:n}),[e,r,i]);return(0,M.useCallback)((r,i,l)=>{switch(r.type){case"bar":{let n=t(r.observation),a=o(r,n);return{backgroundColor:"outside"===i?a.outsideLabelBackgroundColor:a.insideLabelBackgroundColor,textColor:"outside"===i?e.values.textPrimary:a.readableTextColor,isFilled:"outside"===i||!l,isDimmed:n}}case"line":case"point":{let t=n(r.observation);return{backgroundColor:o(r,t).outsideLabelBackgroundColor,textColor:e.values.textPrimary,isFilled:!0,isDimmed:t}}case"tile":return{textColor:o(r,!1).readableTextColor,isDimmed:!1};case"pie":case"donut":{let e=o(r,!1);return{backgroundColor:e.insideLabelBackgroundColor,textColor:e.readableTextColor,isFilled:!0,isDimmed:!1}}}},[t,n,e,o])})(),v=yG();return(0,M.useMemo)(()=>{let e=y.filter(e=>(e=>{var t;let{isHovered:n,isEditable:r,isDefaultVisible:i,vizType:o,annotations:l,getDataPointId:a,dataPoint:s,isBarHighlighted:u,isStackHighlighted:c,isPointHighlighted:d,isHighlighted:p}=e,h=l.find(e=>!uf(e)&&ug(e)&&s.id===a(e)),g="tooltip"===(null==h?void 0:h.config.type)&&void 0===h.config.caption,f="tooltip"===(null==h?void 0:h.config.type)&&void 0!==h.config.caption,m="sticker"===(null==h?void 0:h.config.type),y=yS(s)&&u(s.observation),b=yS(s)&&c(s.observation),x=yP(s)&&d(s.observation),C=null!=(t=yT(s)&&p(s.observation))&&t;switch(o){case"bar":case"barStacked":case"barStackedFill":case"column":case"columnStacked":case"columnStackedFill":case"funnel":case"mekko":return!!yS(s)&&!g&&!m&&("none"===s.stackType||!n||!r)&&(!!i||("stacked"===s.stackType?y&&!b:y));case"line":case"areaStacked":return(i||x)&&!g&&!f&&!m;case"combo":return!(yS(s)&&"none"!==s.stackType&&n&&r)&&(i||y||x)&&!g&&!f&&!m;case"heatmap":return(!n||!r)&&i&&!g;case"pie":case"donut":case"waterfall":return i&&!g;case"scatter":case"bubble":return(i||C)&&!g&&!f&&!m;default:return!1}})({isHovered:(null==c?void 0:c.id)===e.id,isEditable:t,isDefaultVisible:n,vizType:r,annotations:i,getDataPointId:o,dataPoint:e,isBarHighlighted:p,isHighlighted:g,isPointHighlighted:f,isStackHighlighted:m})).map(e=>{let t=b(e);return{dataPoint:e,formattedLabel:t,measured:v((0,h.jsx)(Lz,{isFilled:!0,children:t.rich}))}}),l=y[0]&&yS(y[0])?Math.abs(y[0].x0-y[0].x1):0,a=e.reduce((e,t)=>{let{measured:n}=t;return Math.max(e,n.width)},0)>l&&!d;return e.map(e=>{let{dataPoint:t,measured:n,formattedLabel:r}=e,{fits:i,isRotated:o,xPosition:l,yPosition:s,location:u}=x({dataPoint:t,measured:n,shouldRotate:a});return{dataPoint:t,formattedLabel:r,appearance:C(t,u,o),fits:i,isRotated:o,xPosition:d?s:l,yPosition:d?l:s}})},[c,y,d,n,t,r,i,o,p,g,f,m,b,v,x,C])})({vizType:r,annotations:i,getDataPointId:o,formatLabel:a,shouldShowPercentage:l,isDefaultVisible:n,isEditable:t,numberFormat:s});return(0,h.jsx)(my,{container:document.getElementById(u),id:"dataLabelsAddon",zIndex:mt.dataLabels,resetFontSize:!1,children:(0,h.jsx)(LH,Object.assign({},Mc,{style:{transform:"translate(".concat(c,"px, ").concat(d,"px)")},children:g.map(e=>{var{dataPoint:t,appearance:n}=e,r=sJ(e,["dataPoint","appearance"]);return(0,h.jsx)(LE,Object.assign({},n,r),t.id)})}),"".concat(r,"-").concat(p))})},Mp=hX(1),Mh=p.I4.div(oG(),sb,uv("grey100"),uv("textPrimary"),uv("grey60"),h_(.2),h_(.4),sz.sm),Mg=e=>{let{stackEdge:t,formattedTotalValue:n}=e,{flipAxes:r}=PD();return(0,h.jsx)(Mh,{style:{transform:(e=>{let{flipAxes:t,stackEdge:n}=e;return t&&"leading"===n?"translate(-100%, -50%) translateX(-".concat(Mp,"px)"):t&&"trailing"===n?"translateY(-50%) translateX(".concat(Mp,"px)"):t||"leading"!==n?t||"trailing"!==n?"":"translateX(-50%) translateY(".concat(Mp,"px)"):"translate(-50%, -100%) translateY(-".concat(Mp,"px)")})({flipAxes:r,stackEdge:t})},children:n.rich})},Mf=(0,p.I4)(ed.P.div)(oU()),Mm=(0,p.I4)(ed.P.div)(oW()),My=e=>{let{isDefaultVisible:t,isStackHighlighted:n,stack:r}=e;return!!t||r.some(e=>n(e.observation))},Mb=e=>e.reduce((e,t)=>null===t.yValue?e:e+fl(t.yValue),0),Mx=e=>{var t,n,r,i;let{stack:o,flipAxes:l}=e;return{stackLeadingEdge:null!=(n=null==(t=(0,j.A)(o,e=>e[l?"x0":"y0"]))?void 0:t[l?"x0":"y0"])?n:null,stackTrailingEdge:null!=(i=null==(r=(0,A.A)(o,e=>e[l?"x1":"y1"]))?void 0:r[l?"x1":"y1"])?i:null}},MC=e=>{var t,n,r,i;let{flipAxes:o,stack:l,stackLeadingEdge:a,stackTrailingEdge:s}=e,u=l.every(e=>null===e.yValue||0>=fl(e.yValue));return o?{x:u?a:s,y:null!=(n=null==(t=l[0])?void 0:t.yPosition)?n:0,stackEdge:u?"leading":"trailing"}:{x:null!=(i=null==(r=l[0])?void 0:r.xPosition)?i:0,y:u?s:a,stackEdge:u?"trailing":"leading"}},Mv={initial:{opacity:0},animate:{opacity:1},transition:{type:"spring",bounce:0,duration:.4}},Mj=e=>{let{isDefaultVisible:t,formatTotalValue:n}=e,r=mu("overPlotPortalId"),i=b3("plotOffsetX"),o=b3("plotOffsetY"),l=(e=>{let{isDefaultVisible:t,formatTotalValue:n=up}=e,{hitboxes:r}=yk(),{flipAxes:i}=PD(),{isStackHighlighted:o}=yE(),l=(0,M.useMemo)(()=>{let e=r.flatMap(e=>e.dataPoints).filter(yS).filter(e=>"stacked"===e.stackType);return[...(0,er.Ay)(e,e=>e[i?"yPosition":"xPosition"]).values()]},[i,r]);return(0,M.useMemo)(()=>{let e=[];for(let r of l){let{stackLeadingEdge:l,stackTrailingEdge:a}=Mx({stack:r,flipAxes:i});null!==l&&null!==a&&e.push(Object.assign({isVisible:My({isDefaultVisible:t,stack:r,isStackHighlighted:o}),formattedTotalValue:n(Mb(r))},MC({flipAxes:i,stack:r,stackLeadingEdge:l,stackTrailingEdge:a})))}return e},[i,n,t,o,l])})({isDefaultVisible:t,formatTotalValue:n});return 0===l.length?null:(0,h.jsx)(my,{container:document.getElementById(r),id:"stackTotalsAddon",zIndex:mt.dataLabels,resetFontSize:!1,children:(0,h.jsx)(Mf,Object.assign({},Mv,{style:{transform:"translate(".concat(i,"px, ").concat(o,"px)")},children:l.filter(e=>{let{isVisible:t}=e;return t}).map(e=>{let{x:t,y:n,stackEdge:r,formattedTotalValue:i}=e;return(0,h.jsx)(Mm,{initial:!1,animate:{x:t,y:n},transition:fq,children:(0,h.jsx)(Mg,{stackEdge:r,formattedTotalValue:i})},"".concat(t,"-").concat(n))})}))})},MA=p.I4.svg(oN());p.I4.div(oK(),uv("grey0"));let Mw=e=>{let{highlightType:t,dataPoint:n,isBarHighlighted:r,isPointHighlighted:i,isSeriesHighlighted:o,isHighlighted:l}=e;if(yS(n))return r(n.observation);if(yP(n)){if("data-point"===t)return i(n.observation);if("series"===t)return o(n.observation)}return!!yO(n)&&!!l(n.observation)},Mk=e=>{let{highlightType:t}=e,n=mh(),r=(0,M.useId)(),i="url(#".concat(r,")"),{hitboxes:o,overlayState:{activeHitbox:l,closestGeomDataPoint:a}}=yk();if(null===l||null===a||!yS(a))return null;let s=e=>o.filter(yI).map(r=>{let{dataPoints:i}=r;return i.filter(yS).map(r=>MP(t,r,a)?(0,h.jsx)("rect",Object.assign({x:r.x0,y:r.y0,width:r.x1-r.x0,height:r.y1-r.y0},e?{fill:"black"}:{fill:"none",stroke:n.values.grey0,strokeWidth:2}),r.id):null)});return(0,h.jsxs)(MA,{width:"100%",height:"100%",children:[(0,h.jsx)("defs",{children:(0,h.jsxs)("mask",{id:r,x:0,y:0,width:"100%",height:"100%",maskUnits:"userSpaceOnUse",children:[(0,h.jsx)("rect",{x:0,y:0,width:"100%",height:"100%",fill:"white"}),s(!0)]})}),(0,h.jsx)("rect",{x:0,y:0,width:"100%",height:"100%",fill:n.values.grey100,fillOpacity:.5,mask:i}),s(!1)]})},MP=(e,t,n)=>{switch(e){case"series":return((e,t)=>{if(!yM(e)||!yM(t))return!1;let[n,r]=[e.groupValues,t.groupValues];return n.length===r.length&&n.every((e,t)=>void 0!==r[t]&&yC(e)===yC(r[t]))})(t,n);case"x-value":return!(!yM(t)||!yM(n))&&yC(t.xValue)===yC(n.xValue);case"data-point":return t.id===n.id}},MS=p.I4.div(oZ()),ML=p.I4.div(oX()),MM=e=>{let{highlightType:t,highlightStyle:n}=e,{overlayState:{activeHitbox:r,closestGeomDataPoint:i}}=yk(),{isLineDimmed:o}=yE(),l=mh();if("data-point"!==t||null===r||null===i||!yP(i))return null;let a=bg({theme:l,color:i.vizColor,isDimmed:o(i.observation),highlightStyle:n});return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(MS,{style:{transform:"translate(-50%, -50%) translate(".concat(i.xPosition,"px, ").concat(i.yPosition,"px)"),border:"1px solid ".concat(a)}}),(0,h.jsx)(ML,{style:{transform:"translate(-50%, -50%) translate(".concat(i.xPosition,"px, ").concat(i.yPosition,"px)"),backgroundColor:a}})]})},MO=p.I4.svg(o_()),MT=e=>{var t;let{highlightType:n}=e,{overlayState:{activeHitbox:r,closestGeomDataPoint:i}}=yk(),o=mh();return"series"===n&&null!==r&&null!==i&&yP(i)?(0,h.jsxs)(MO,{width:"100%",height:"100%",children:[(0,h.jsx)("rect",{x:0,y:0,width:"100%",height:"100%",fill:o.values.grey100,fillOpacity:.5}),(0,h.jsx)("path",Object.assign({d:null!=(t=i.generateLinePath())?t:"",fill:"none",stroke:i.vizColor},bh(4,i.lineType)))]}):null},MD=p.I4.svg(oQ()),MI=()=>{let{overlayState:{closestGeomDataPoint:e}}=yk();return e&&yT(e)?(0,h.jsx)(MD,{width:"100%",height:"100%",children:(0,h.jsx)("circle",{cx:e.xPosition,cy:e.yPosition,r:8,fill:"none",stroke:e.vizColor,strokeWidth:1})}):null},Mz=p.I4.svg(oJ()),ME=()=>{let e=mh(),{overlayState:{closestGeomDataPoint:t}}=yk();return t&&yT(t)?(0,h.jsxs)(Mz,{width:"100%",height:"100%",children:[(0,h.jsx)("rect",{x:0,y:0,width:"100%",height:"100%",fill:e.values.grey100,fillOpacity:.6}),t.partitionDataPoints.map(e=>(0,h.jsxs)(M.Fragment,{children:[(0,h.jsx)("circle",{cx:e.xPosition,cy:e.yPosition,r:5,fill:e.vizColor}),(0,h.jsx)("circle",{cx:e.xPosition,cy:e.yPosition,r:8,stroke:e.vizColor,fill:"none"})]},e.id))]}):null},MH=p.I4.svg(oq()),MV=p.I4.path(o$(),uv("grey0")),MF=()=>{let e=mh(),{overlayState:{closestGeomDataPoint:t}}=yk(),n=(0,M.useId)(),r=gG(e=>e.computedConfig.type),i=Mi("pieRadius"),o=Mo(i,r),l=Mi("pieCenterX"),a=Mi("pieCenterY");if(!t||!yO(t))return null;let s=(0,J.A)().cornerRadius(.02*i)({endAngle:t.endAngle,startAngle:t.startAngle,innerRadius:o,outerRadius:i});return s?(0,h.jsxs)(MH,{width:"100%",height:"100%",children:[(0,h.jsx)("defs",{children:(0,h.jsx)("mask",{id:n,children:(0,h.jsx)("path",{d:s,fill:"white",strokeWidth:3,stroke:"black",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,h.jsx)("rect",{x:0,y:0,width:"100%",height:"100%",fill:e.values.grey100,fillOpacity:.6}),(0,h.jsx)("g",{transform:"translate(".concat(l," ").concat(a,")"),children:(0,h.jsx)(MV,{d:s,fill:t.vizColor,mask:"url(#".concat(n,")"),strokeWidth:8})})]}):null},MB=p.I4.div(o1()),MR=e=>{switch(e){case"inactive":document.body.style.cursor="";break;case"highlight":document.body.style.cursor='image-set(url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAWCAYAAADeiIy1AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAJMSURBVHgBrZXPa9NgGMefN1uqA3tq/4CCEcSIiLl4mcaDiGIPHop48aJTMGxQD4Kw6pjs0op6EJrhzl68Fa+zPTkPvVioknoYWlbpoeLG2qT5Qfa+2d4t7dL86PaF8PLmTZ5Pnuf75H0BjiYEIE4ahrFoGGYJjyVVVR9kMpkJOE4pipK0LOu7PaRuV13Cy8cCQ27IxkbLzj59ZhcK71yw7pI7s3GoqFpVEjzPrTIMc6HV+gszjyVIpVLwde0bNBq/4Jp4BViWnU6n0xN4rGDZEFUkE+xFjWZy6/YdO/fyle2ev9ibE7Xb7RvgeBktk5EQKnq/KK84816v9xEiVA5DqoEQqsLrt/bDmSe0MdYAQnYhgbiN94PI8gdnnTxHpCjr2VDt7uXJxUuX9wP5QVS1/yMeF5IQ4BFuYe9MisuDAUdBstkcLwgCGwBRfMvlhh2GaD9nZxfOcdzNE+DviRLKeAKbvnr9EESSFnmez8QgQEjXtffjGE/KJUk5DOEDISAIj1jTNP+QF+/eux8ZEliuA/Ex7M0meZmURd778fwhxJPn2BMuLASgVlPOUpC8vOK0shvmBSHdFapcVM1m8wyG/CYBSqXPDoReBDa6uyJkQqRputMEX8qVAUi+8MYBeEHCdNewUKfzL2+H0BjGD2p+Pn+60/m/OhzYNK0tOjYa68W5uYXzkTyBoT1IFMXJer2b7PetUwjpOHQMr2uAEIMPrpP4YuypKWM7keA26/VPOkSQ12bH4L8J77Ya2g1OPiC+f0KWyxULIYh8Yu4ARrZxdpMsCmcAAAAASUVORK5CYII=") 1x, url("data:image/png;base64,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") 2x) 9 15, pointer';break;case"unhighlight":document.body.style.cursor='image-set(url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAWCAYAAADeiIy1AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAATkSURBVHgBjVV7TFNXGO+9vfQ5qGUTcchjlckWUHmEbYSHFEYHzD9gsZ1DGTWZIqLRoIMukNllQ0VMnCuIBHVO5gDdAhgI6oQWcHFuwJQsSKGsSQdulrTYru3tuztHe5e2K8UvOem55/H9zu/7ft9XEimwIWKxGIUDzn03XS4Xkp2djeG4ZafD4aiDw2Aw8Ph8Ppn0vAadq9XqJLeD4waD2csBBBkbG2PZ7XYJmF/3HDiOlz4XGHRiNpt5vg50Ol2+24EXCFjvOCNpqf6hu1dMnAXMSsG5/8BQf0ACgQAlk8k5cC5pauEcO34yDs5DQkL2tba28vr6+lYlJiZ+Ac5E6/V64/6DR4ZYrOCgnt6+hW/aO+7Bs0wmkw+YlRDM/AItLi4iVqvV7OZHuvZ99wYCjM1mVxQUFJzyBMnN2RJWVrqjvLnp9EeDQ1I1AUaj0fjNzc2bYAT8xjE1NRWJjNxgjY5+OePNN1KXtEtLECxOq9UimZnpGgRBmL4g4FoklUKJ4OXlxkiaz0mZTIZt/XpOGIqi5Pr6+nt+gaampkijo5NPtm59h8Zms17NzEjXTD2cZgzcuMWBYJs3b1R5gMBccIi7FEoQDUERxcRvk+otWemvOJ1OXC6XD5KWMyhbFiuDPTen3Esk+MDBw6rE5LdcWdm8zkuXv60Fa9MubzNKh0dOlwp374YCgXfkckUR9EUKZPBAZWVtNFBXF6Gu9KzcuxCss/OqaiUQIIazLNZGdkCp+9YJvAydtF/pkBS9974RgvX09FkDgQiFopj4+HgK9BUQBCjPC6Sj61o9+LbqdP8YtwlKrATY8PBokzeI+SlIbGwBdUUQXyZuECMRJ6A6qxsMgn5OgBiNeMuuXSIgjlgvkP/VEZAukpCQ8IFnnRQW8GK2C7YdAtsM4lxwcLBNKPzwEpiaFhb+qplRzK2F6xhGphcXc11i8U4bcOUiLWcpKSlBgM1F+LpDVTWV7Ve6YFt5slzix8cnet/Oe9eYls61/jo+IYP3QG+8ACQdEZAR6HGQ1NOXT8tnDOHhYUySd+fW3R6Snb34dftU05lTOcnJSci5lq/uMhkMm0hUlzr3h5IOinQ1h8M5wOVyyQDMLyHkzp2xKELON28NHUtMSSsZlA5/Cb5tkNmPg9JGz8QTQ6GYuw2Z5eYVGjUa7cCzGpK/RjzSi5FKpVqblpZ0FOSH/uDBpLLmk9rf4frhI6JfRkZ+agVM2i63fzcDmYAGyzSZzAvV1Y1iEIV50G5MkFl0VJRes7QU9Cxf9BegvkieIYHxtFgs5VQqtVAun13YvqNslNj7tLYmrvt6/zycEyBms2V+z566xv7+UU1+PveltrajHzMYtAjijs3m0ERGJu9//HjSBN17xh7VaDRloaGhxaQVDDKoqPjspEz2899CYbb1/Pmb1Kqqck5JSWERnU57Ua3WKk6ckPTfvy97BEoFqs8ryWh1dUO4SLR3H5sdssnTMciZGcMwGlATrlT+KWtouHBDJut8NDursAIfMDRoTEw2Rau1MJxOjIyidkdoKNWkVEothMS9qhZWsl6vXWW3Oyk4joIDToROhzs4GHQSjmNODGOY16yhGBSKASsRf3fwET5fgML/MplsNcjEVadnHfm2BwTUEQZC6NUEMex1l93+EIG/69bhDqlU6ghYjH7sX9EccpfuDcYpAAAAAElFTkSuQmCC") 1x, url("data:image/png;base64,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") 2x) 9 15, not-allowed'}},MY=e=>{let{onHighlight:t,onRemoveHighlight:n,highlightStyle:r,getRowCategoricalValue:i,vizType:o}=e,l=mu("overPlotPortalId"),a=b3("plotOffsetX"),s=b3("plotOffsetY"),u=b3("plotWidth"),c=b3("plotHeight"),{canUserInteractWithAddon:d}=xp(),p=d("highlightEditorAddon"),{highlightType:g}=(e=>{let{onHighlight:t,onRemoveHighlight:n,getRowCategoricalValue:r}=e,{hitboxes:i,overlayState:{activeHitbox:o,closestGeomDataPoint:l}}=yk(),{selectedHighlightType:a,canUserInteractWithAddon:s,highlightEditorRef:u,setFocusedInteraction:c,restoreDefaultInteraction:d,_setSelectedHighlightType:p}=xp(),h=s("highlightEditorAddon"),g=(0,M.useCallback)(e=>{h&&(p(e),c("highlightEditorAddon"))},[p,h,c]),f=(0,M.useCallback)(()=>{h&&(p(null),d())},[p,h,d]);(0,M.useImperativeHandle)(u,()=>({enterHighlightMode:g,exitHighlightMode:f,getHighlightOptions:()=>(e=>{let t=e.some(e=>e.dataPoints.some(yS)),n=e.some(e=>e.dataPoints.some(yP)),r=e.some(e=>e.dataPoints.some(yT)),i=e.some(e=>e.dataPoints.some(yO)),o=[];if(!(t||n||r||i))return o;t&&n?o.push({id:"pointOrBar",annotation:k0}):t?o.push({id:"bar",annotation:k0}):n?o.push({id:"linePoint",annotation:k0}):r&&o.push({id:"scatterPoint",annotation:k0});let{lineSeriesCount:l,barsInBarGroupOrStack:a,barSeriesCount:s,pointSeriesCount:u}=k3(e);if(t&&a>1){let t=e.some(e=>e.dataPoints.filter(yS).some(e=>"stacked"===e.stackType||"stacked-fill"===e.stackType))?"barStack":"barGroup";o.push({id:t,annotation:k5})}else i&&o.push({id:"pieSlice",annotation:k5});return t&&n?o.push({id:"lineSeries",annotation:k2}):t&&s>1?o.push({id:"barSeries",annotation:k2}):n&&l>1?o.push({id:"lineSeries",annotation:k2}):r&&u>1&&o.push({id:"scatterSeries",annotation:k2}),o})(i),getRenderedHighlightedDataPoints:e=>i.flatMap(e=>e.dataPoints).filter(t=>e.includes(t.id)).filter(e=>yS(e)||yP(e)||yT(e))}));let{isBarHighlighted:m,isPointHighlighted:y,isSeriesHighlighted:b,isHighlighted:x}=yE();return(0,M.useEffect)(()=>{let e=()=>{if(h&&null!==a&&o&&l)if(Mw({highlightType:a,dataPoint:l,isBarHighlighted:m,isPointHighlighted:y,isSeriesHighlighted:b,isHighlighted:x}))n(l);else{let{propertyKey:e,rowIndex:n}=dD(l.id);t({id:crypto.randomUUID(),propertyKey:e,rowIndex:n,rowValue:r(n),config:{type:"highlight",highlight:a}})}};return document.addEventListener("click",e),()=>document.removeEventListener("click",e)},[o,l,a,h,t,n,r,m,y,b,x]),(e=>{let{isInteractive:t,highlightType:n,exitHighlightMode:r}=e;(0,M.useEffect)(()=>{let e=e=>{t&&null!==n&&"Escape"===e.key&&(r(),e.preventDefault())};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[r,n,t]);let{overlayState:{activeHitbox:i,closestGeomDataPoint:o}}=yk();(0,M.useEffect)(()=>{let e=()=>{null===n||i&&o||r()};return document.addEventListener("click",e,!0),()=>document.removeEventListener("click",e,!0)},[i,o,r,n])})({isInteractive:h,highlightType:a,exitHighlightMode:f}),((e,t)=>{let{overlayState:{activeHitbox:n,closestGeomDataPoint:r}}=yk(),{isBarHighlighted:i,isPointHighlighted:o,isSeriesHighlighted:l,isHighlighted:a}=yE();(0,M.useEffect)(()=>{if(!e||!t)return MR("inactive");MR(n&&r&&Mw({highlightType:e,dataPoint:r,isBarHighlighted:i,isPointHighlighted:o,isSeriesHighlighted:l,isHighlighted:a})?"unhighlight":"highlight")},[n,r,e,i,a,t,o,l])})(a,h),{highlightType:a,exitHighlightMode:f}})({onHighlight:t,onRemoveHighlight:n,getRowCategoricalValue:i});return p&&null!==g?(0,h.jsx)(my,{container:document.getElementById(l),id:"highlightEditorAddon",zIndex:mt.highlightEditor,resetFontSize:!1,children:(0,h.jsxs)(MB,{style:{transform:"translate(".concat(a,"px, ").concat(s,"px)"),width:u,height:c},children:[(0,h.jsx)(Mk,{highlightType:g}),(0,h.jsx)(MT,{highlightType:g}),(0,h.jsx)(MM,{highlightType:g,highlightStyle:r}),"data-point"===g?(0,h.jsx)(MI,{}):null,"series"===g?(0,h.jsx)(ME,{}):null,"x-value"!==g||"pie"!==o&&"donut"!==o?null:(0,h.jsx)(MF,{})]})}):null},MG=e=>({id:"highlight-editor",render:()=>(0,h.jsx)(MY,Object.assign({},e))}),MU=(0,p.I4)(ed.P.div)(o0()),MW=p.I4.div(o2()),MN=p.I4.div(o5()),MK=(0,M.createContext)(null),MZ=uD(MK,"AnnotationsProvider"),MX=e=>{let{children:t}=e,[n,r]=(0,M.useState)(null),i=g8(n),{setFocusedInteraction:o,restoreDefaultInteraction:l}=xp();(0,M.useEffect)(()=>{n?o("annotations"):i&&l()},[n,i,l,o]);let a=(0,M.useMemo)(()=>({focusedAnnotationId:n,setFocusedAnnotationId:r}),[n]);return(0,h.jsx)(MK.Provider,{value:a,children:t})},M_=e=>{let{id:t,editorRef:n,isNew:r,toolbarRef:i}=e,{setFocusedAnnotationId:o,focusedAnnotationId:l}=MZ(),[a,s]=(0,M.useState)(!1),[u,c]=(0,M.useState)(!1),d=()=>{s(!0),o(t)},p=()=>{s(!1),o(null)};return(0,M.useEffect)(()=>{let e=e=>{var t,r;a&&(e.target instanceof Element&&(null==(t=n.current)?void 0:t.contains(e.target))||e.target instanceof Element&&(null==(r=null==i?void 0:i.current)?void 0:r.contains(e.target))||(s(!1),o(null),c(!1)))};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[n,a,o,i]),gK(()=>{l===t&&o(null)}),(0,M.useEffect)(()=>{null!==l&&l!==t&&s(!1)},[l,t]),(0,M.useEffect)(()=>{var e;r&&(null==(e=n.current)||e.focus())},[r,n]),{isFocused:a,isHovered:u,blurAnnotation:p,focusAnnotation:d,editorHandlers:{onFocus:d,onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),onKeyDown:e=>{"Tab"===e.key&&p()}}}},MQ=e=>{let{annotationId:t,isEditable:n,isFocused:r,textEditorRef:i={current:null},onDuplicate:o,onDelete:l,onEscPress:a}=e,[s,u]=(0,M.useState)(!1);(0,M.useEffect)(()=>{let e=e=>{var c,d,p,h,g,f,m;if(r&&n){if("Escape"===e.key&&(a(),e.preventDefault(),e.stopPropagation()),"Backspace"===e.key||"Delete"===e.key){if((null==(d=null==(c=i.current)?void 0:c.editor)?void 0:d.isFocused)||(null==(p=document.activeElement)?void 0:p.matches("input")))return;l(t),e.preventDefault(),e.stopPropagation()}o&&((e.metaKey||e.ctrlKey)&&"d"===e.key&&(o(t),e.preventDefault(),e.stopPropagation()),!e.metaKey&&!e.ctrlKey||"c"!==e.key||(null==(g=null==(h=i.current)?void 0:h.editor)?void 0:g.isFocused)||(u(!0),e.preventDefault(),e.stopPropagation()),(e.metaKey||e.ctrlKey)&&"v"===e.key&&s&&!(null==(m=null==(f=i.current)?void 0:f.editor)?void 0:m.isFocused)&&(o(t),u(!1),e.preventDefault(),e.stopPropagation()))}};return window.addEventListener("keydown",e,!0),()=>window.removeEventListener("keydown",e,!0)},[t,i,n,r,s,l,o,a]),(0,M.useEffect)(()=>{r&&n||u(!1)},[n,r])},MJ=Math.PI/4,Mq=e=>"difference-arrow-container-".concat(e),M$=e=>"difference-arrow-label-".concat(e),M1={light:"#1D2129",dark:"#FFFFFF"},M0={light:M1.dark,dark:M1.light},M2=e=>(t,n)=>{let r=t(n),i=M1[e.colorScheme];return 1.4>eJ.Ay.contrast(r,i)&&(i=M0[e.colorScheme]),{color:n,stickerColor:i}},M5={thin:{arrowheadLength:{minValue:6,targetValue:8},strokeWidth:{minValue:1,targetValue:2}},medium:{arrowheadLength:{minValue:12,targetValue:16},strokeWidth:{minValue:2,targetValue:4}},thick:{arrowheadLength:{minValue:24,targetValue:32},strokeWidth:{minValue:4,targetValue:8}}},M3=(e,t)=>Math.min(t.targetValue,t.minValue*e),M7=e=>{let{startX:t,startY:n,endX:r,endY:i,attributes:o}=e,l=mu("chartWidth"),a=(0,p.DP)(),s=xX(),u=(0,M.useCallback)(()=>{var e;let t=null!=(e=o.color)?e:a.values.textPrimary;return M2(a)(s,t)},[o.color,s,a]);return(0,M.useMemo)(()=>{let e=Math.max(1,(l-400)/400+1),a=M3(e,M5[o.thickness].strokeWidth),s=()=>"\n M ".concat(t," ").concat(n,"\n L ").concat(r," ").concat(i,"\n "),c=e=>{if("line-arrow"!==("start"===e?o.startArrowheadStyle:o.endArrowheadStyle))return"";let l=p("start"===e?t:r,"start"===e?n:i,"start"===e?Math.atan2(n-i,t-r):Math.atan2(i-n,r-t));switch(e){case"start":return"\n M ".concat(t," ").concat(n,"\n L ").concat(l.x1," ").concat(l.y1,"\n M ").concat(t," ").concat(n,"\n L ").concat(l.x2," ").concat(l.y2,"\n ");case"end":return"\n M ".concat(r," ").concat(i,"\n L ").concat(l.x1," ").concat(l.y1,"\n M ").concat(r," ").concat(i,"\n L ").concat(l.x2," ").concat(l.y2,"\n ")}},d=()=>{let l=M3(e,M5[o.thickness].arrowheadLength);return Math.min(l,Math.hypot(r-t,i-n)/(64/l))},p=(e,t,n)=>{let r=d();return{x1:e-r*Math.cos(n-MJ),y1:t-r*Math.sin(n-MJ),x2:e-r*Math.cos(n+MJ),y2:t-r*Math.sin(n+MJ)}};return{arrowThickness:a,getArrowSettings:u,getArrowPath:()=>"\n ".concat(s(),"\n ").concat("line-arrow"===o.startArrowheadStyle?c("start"):"","\n ").concat("line-arrow"===o.endArrowheadStyle?c("end"):"","\n "),getLinePath:s,getArrowheadPath:c,getDashedStroke:()=>{let e="none"!==o.startArrowheadStyle;switch(o.lineStyle){case"solid":return{};case"dashed":return{strokeDasharray:"".concat(1.5*a," ").concat(3*a),strokeDashoffset:e?1.5*a:0}}},getArrowFilterArea:()=>{let e=d()*Math.sin(MJ)+a/2+2+1.15;return{filterUnits:"userSpaceOnUse",x:Math.min(t,r)-e,y:Math.min(n,i)-e,width:Math.abs(r-t)+2*e,height:Math.abs(i-n)+2*e}}}},[l,o.thickness,o.startArrowheadStyle,o.endArrowheadStyle,o.lineStyle,u,t,n,r,i])},M9=(0,M.memo)(e=>{let t=(0,M.useId)(),n=M7(e),{arrowPath:r,linePath:i,startArrowheadPath:o,endArrowheadPath:l,arrowSettings:a,arrowThickness:s,dashedStroke:u,filterProps:c}=(0,M.useMemo)(()=>({arrowThickness:n.arrowThickness,arrowSettings:n.getArrowSettings(),arrowPath:n.getArrowPath(),linePath:n.getLinePath(),startArrowheadPath:n.getArrowheadPath("start"),endArrowheadPath:n.getArrowheadPath("end"),dashedStroke:n.getDashedStroke(),filterProps:n.getArrowFilterArea()}),[n]);return(0,h.jsxs)("g",{children:[(0,h.jsx)("defs",{children:(0,h.jsx)("filter",Object.assign({id:t},c,{children:(0,h.jsx)("feDropShadow",{dx:0,dy:1.15,stdDeviation:1.15,floodColor:"#000",floodOpacity:.16})}))}),(0,h.jsxs)("g",{filter:e.attributes.stickerStyle?"url(#".concat(t,")"):"",children:[e.attributes.stickerStyle&&(0,h.jsx)("path",{d:r,stroke:a.stickerColor,strokeWidth:s+4,strokeLinecap:"round",fill:"none"}),(0,h.jsx)("path",Object.assign({d:i,stroke:a.color,strokeWidth:s,strokeLinecap:"round"},u,{fill:"none"})),(0,h.jsx)("path",{d:o,stroke:a.color,strokeWidth:s,strokeLinecap:"round",fill:"none"}),(0,h.jsx)("path",{d:l,stroke:a.color,strokeWidth:s,strokeLinecap:"round",fill:"none"})]})]})});M9.displayName="Arrow";let M4=p.I4.svg(o3()),M6=p.I4.g(o7()),M8=e=>{let{annotationId:t,onDelete:n}=e,r=(0,Z.s9)();return(0,h.jsx)(jd,{label:r("graph.annotations.delete"),hasInvertedTheme:!1,children:(0,h.jsx)(vK,{variant:"subtle",onClick:()=>n(t),iconBefore:(0,h.jsx)(xP,{})})})},Oe=e=>{var t;let{annotationId:n,attributes:r,onAttributeUpdate:i,seriesColorOptions:o}=e,l=mh();return(0,h.jsx)(j2,{onChange:e=>{i(n,"color",e)},value:null!=(t=r.color)?t:l.values.textPrimary,seriesColorOptions:o})},Ot=p.I4.div(o9()),On=p.I4.div(o4()),Or=e=>{var t;let{annotationId:n,attributes:r,onAttributeUpdate:i,point:o}=e,l=(0,Z.s9)(),a=[{value:"line-arrow",label:l("graph.annotations.arrow.arrowhead.lineArrow")},{value:"none",label:l("graph.annotations.arrow.arrowhead.none")}],s=a.find(e=>"line-arrow"===e.value),u=null!=(t=a.find(e=>e.value===r["".concat(o,"ArrowheadStyle")]))?t:s;return(0,h.jsx)(wh,{variant:"subtle",options:a,value:u,onChange:e=>{i(n,"".concat(o,"ArrowheadStyle"),e.value)},shouldFitContent:!0,renderValue:()=>{switch(o){case"start":return(0,h.jsx)(Ot,{children:(0,h.jsx)(xH,{})});case"end":return(0,h.jsx)(Ot,{children:(0,h.jsx)(xV,{})})}},renderItem:e=>{let{option:t,menuItemProps:n}=e;return(0,h.jsx)(AZ,Object.assign({},n,{iconAfter:"line-arrow"===t.value?(0,h.jsx)(xV,{}):"—",children:t.label}))},tooltip:{label:l("start"===o?"graph.annotations.arrow.arrowhead.startPoint":"graph.annotations.arrow.arrowhead.endPoint"),hasInvertedTheme:!1}})},Oi=e=>{var t;let{annotationId:n,attributes:r,onAttributeUpdate:i}=e,o=(0,Z.s9)(),l=[{value:"thin",label:o("graph.annotations.arrow.thickness.thin")},{value:"medium",label:o("graph.annotations.arrow.thickness.medium")},{value:"thick",label:o("graph.annotations.arrow.thickness.thick")}],a=l.find(e=>"medium"===e.value),s=null!=(t=l.find(e=>e.value===r.thickness))?t:a;return(0,h.jsx)(wh,{variant:"subtle",options:l,value:s,onChange:e=>{i(n,"thickness",e.value)},shouldFitContent:!0,renderValue:()=>(0,h.jsx)(Ot,{children:(0,h.jsx)(xQ,{})}),tooltip:{label:o("graph.annotations.arrow.thickness.label"),hasInvertedTheme:!1}})},Oo=p.I4.div(o6(),hW,sz.lg,sE.sm,h_(.5),uv("textPrimary"),uv("overlayBackground"),sH(uv("overlayBorderGradient"),1,"lg")),Ol=e=>{var t;let{annotationId:n,attributes:r,onAttributeUpdate:i}=e,o=(0,Z.s9)(),l=[{value:"solid",label:o("graph.annotations.arrow.lineStyle.solid")},{value:"dashed",label:o("graph.annotations.arrow.lineStyle.dotted")}],a=l.find(e=>"solid"===e.value),s=null!=(t=l.find(e=>e.value===r.lineStyle))?t:a;return(0,h.jsx)(wh,{variant:"subtle",options:l,value:s,onChange:e=>{i(n,"lineStyle",e.value)},shouldFitContent:!0,renderValue:e=>(0,h.jsx)(Ot,{children:"solid"===e.value?(0,h.jsx)(Oa,{}):(0,h.jsx)(Os,{})}),renderItem:e=>{let{option:t,menuItemProps:n}=e;return(0,h.jsx)(AZ,Object.assign({},n,{iconAfter:"solid"===t.value?(0,h.jsx)(Oa,{}):(0,h.jsx)(Os,{}),children:t.label}))},tooltip:{label:o("graph.annotations.arrow.lineStyle.label"),hasInvertedTheme:!1}})},Oa=()=>(0,h.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:(0,h.jsx)("path",{d:"M13.5 2.5L2.5 13.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})}),Os=()=>(0,h.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:(0,h.jsx)("path",{d:"M13.5 2.5L2.5 13.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeDasharray:"3 4"})}),Ou=e=>{let{annotationId:t,attributes:n,onAttributeUpdate:r}=e,i=(0,Z.s9)();return(0,h.jsx)(jd,{label:i("graph.annotations.arrow.stickerEffect"),hasInvertedTheme:!1,children:(0,h.jsx)(vK,{onClick:()=>{r(t,"stickerStyle",!n.stickerStyle)},variant:"subtle",children:(0,h.jsx)(Oc,{isActive:n.stickerStyle})})})},Oc=e=>{let{isActive:t}=e,n=(0,M.useId)(),r="M6.50002 3.16666C6.22388 3.16666 6.00002 2.9428 6.00002 2.66666C6.00002 2.39051 6.22388 2.16666 6.50002 2.16666H13.8334C14.1095 2.16666 14.3334 2.39051 14.3334 2.66666V9.99999C14.3334 10.2761 14.1095 10.5 13.8334 10.5C13.5572 10.5 13.3334 10.2761 13.3334 9.99999V3.87376L3.52024 13.6869C3.32498 13.8821 3.0084 13.8821 2.81313 13.6869C2.61787 13.4916 2.61787 13.175 2.81313 12.9798L12.6262 3.16666H6.50002Z";return(0,h.jsx)(On,{children:(0,h.jsxs)("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",children:[(0,h.jsx)("defs",{children:(0,h.jsx)("filter",{id:n,x:"-50%",y:"-50%",width:"200%",height:"200%",children:(0,h.jsx)("feDropShadow",{dx:"0",dy:"0",stdDeviation:"0.5",floodColor:"#000",floodOpacity:"0.5"})})}),(0,h.jsxs)("g",{filter:t?"url(#".concat(n,")"):"",children:[t&&(0,h.jsx)("path",{d:r,fill:"#fff",stroke:"#fff",strokeWidth:"5",strokeLinejoin:"round"}),(0,h.jsx)("path",{d:r,fill:"currentColor",stroke:"currentColor",strokeWidth:"0.5"})]})]})})},Od=M.forwardRef(function(e,t){let{isVisible:n,floatingStyles:r,annotationId:i,attributes:o,seriesColorOptions:l,onAttributeUpdate:a,onDelete:s}=e,u=(0,Z.s9)(),c=ml();if(!n)return null;let d={annotationId:i,attributes:o,onAttributeUpdate:a};return(0,h.jsx)(my,{container:null==c?void 0:c.container,zIndex:s_.toolbar,children:(0,h.jsxs)(Oo,{ref:t,role:"toolbar","aria-label":u("graph.annotations.arrow.toolbarAriaLabel"),style:r,children:[(0,h.jsx)(Oe,Object.assign({},d,{seriesColorOptions:l})),(0,h.jsx)(Oi,Object.assign({},d)),(0,h.jsx)(Or,Object.assign({point:"start"},d)),(0,h.jsx)(Ol,Object.assign({},d)),(0,h.jsx)(Or,Object.assign({point:"end"},d)),(0,h.jsx)(Ou,Object.assign({},d)),(0,h.jsx)(M8,{onDelete:s,annotationId:i})]})})}),Op=e=>{let{annotationId:t,startX:n,startY:r,endX:i,endY:o,onUpdate:l,isEditorFocused:a,isEditorHovered:s,zoom:u=1}=e,c=(0,M.useRef)(n),d=(0,M.useRef)(r),p=(0,M.useRef)(i),g=(0,M.useRef)(o),[f,m]=(0,M.useState)(!1),y=gX({preventDefault:!1,dragThreshold:0,onDragStart:()=>{c.current=n,d.current=r,m(!0)},onDrag:e=>{l(t,c.current+e.deltaX/u,d.current+e.deltaY/u,i,o),document.body.style.cursor="grabbing"},onDragEnd:()=>{m(!1),document.body.style.cursor="grab"}}),b=gX({preventDefault:!1,dragThreshold:0,onDragStart:()=>{p.current=i,g.current=o,m(!0)},onDrag:e=>{l(t,n,r,p.current+e.deltaX/u,g.current+e.deltaY/u),document.body.style.cursor="grabbing"},onDragEnd:()=>{m(!1),document.body.style.cursor="grab"}});gK(()=>{y.cleanup(),b.cleanup()});let x=mh();return(0,h.jsxs)("g",{cursor:f?"grabbing":"grab",opacity:a?1:.75*!!s,children:[(0,h.jsx)("circle",Object.assign({cx:n,cy:r,r:5,fill:x.values.annotationFrameBorderColor},y.dragProps)),(0,h.jsx)("circle",Object.assign({cx:i,cy:o,r:5,fill:x.values.annotationFrameBorderColor},b.dragProps))]})},Oh=e=>{let{annotationId:t,attributes:n,startX:r,startY:i,endX:o,endY:l,onMove:a,isEditorFocused:s,isEditorHovered:u,zoom:c=1}=e,d=mh(),p=M7({startX:r,startY:i,endX:o,endY:l,attributes:n}),g=(0,M.useRef)(r),f=(0,M.useRef)(i),m=(0,M.useRef)(o),y=(0,M.useRef)(l),{dragProps:b,cleanup:x}=gX({preventDefault:!1,dragThreshold:0,onDragStart:()=>{g.current=r,f.current=i,m.current=o,y.current=l},onDrag:e=>{a(t,g.current+e.deltaX/c,f.current+e.deltaY/c,m.current+e.deltaX/c,y.current+e.deltaY/c)}});gK(x);let C=p.getLinePath();return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("path",Object.assign({cursor:"move",d:C,stroke:"none",strokeWidth:15,strokeLinecap:"round"},b)),(u||s)&&(0,h.jsx)("path",{pointerEvents:"none",d:C,stroke:d.values.annotationFrameBorderColor,strokeWidth:1,strokeOpacity:s?1:.75})]})},Og=e=>{let{isVisible:t,offset:n=0}=e,{refs:{setReference:r,setFloating:i},floatingStyles:o}=(0,eL.we)({open:t,placement:"top",middleware:[(0,eL.cY)(n)],whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n{let e=mu("chartWidth"),t=mu("chartHeight"),n=b3("plotOffsetX"),r=b3("plotOffsetY"),i=b3("plotHeight");return{top:-r-40,right:-(e-b3("plotWidth")-n)-10,bottom:-(t-i-r)-10,left:-n-10}},Oy=(e,t,n)=>({startX:hQ(n.config.start.x*e),startY:hQ(n.config.start.y*t),endX:hQ(n.config.end.x*e),endY:hQ(n.config.end.y*t)}),Ob=e=>{var{annotation:t,onPointsUpdate:n,onAttributeUpdate:r,onDuplicate:i,onDelete:o,isEditable:l,zIndex:a,isNew:s}=e,u=sJ(e,["annotation","onPointsUpdate","onAttributeUpdate","onDuplicate","onDelete","isEditable","zIndex","isNew"]);let c=(0,M.useRef)(null),d=(0,M.useRef)(null),{coords:p,handleUpdate:g}=(e=>{let{annotation:t,onPointsUpdate:n}=e,r=b3("plotHeight"),i=b3("plotWidth"),[o,l]=(0,M.useState)(Oy(i,r,t));(0,M.useEffect)(()=>{l(Oy(i,r,t))},[r,i]);let a=Om();return{coords:o,handleUpdate:(e,t,o,s,u)=>{let c=Math.max(a.left,Math.min(t,i-a.right)),d=Math.max(a.top,Math.min(o,r-a.bottom)),p=Math.max(a.left,Math.min(s,i-a.right)),h=Math.max(a.top,Math.min(u,r-a.bottom));n(e,c/i,d/r,p/i,u/r),l({startX:c,startY:d,endX:p,endY:h})}}})({annotation:t,onPointsUpdate:n}),{isFocused:f,isHovered:m,blurAnnotation:y,editorHandlers:b}=M_({id:t.id,editorRef:d,toolbarRef:c,isNew:s});return MQ({annotationId:t.id,isEditable:l,isFocused:f,onDelete:o,onDuplicate:i,onEscPress(){var e;null==(e=d.current)||e.blur(),y()}}),(0,h.jsxs)(M4,{style:{zIndex:a},children:[(0,h.jsx)(M9,Object.assign({},p,{attributes:t.config.attributes})),(0,h.jsx)(Of,Object.assign({ref:d,toolbarRef:c,annotationId:t.id,attributes:t.config.attributes,onAttributeUpdate:r,onDelete:o,onPointsUpdate:g,isFocused:f,isHovered:m,isEditable:l},p,u,b))]})},Ox=e=>{if(!e)return{x:0,y:0};switch(e.type){case"bar":return e.flipAxes?{x:e.x1,y:(e.y0+e.y1)/2}:{x:(e.x0+e.x1)/2,y:e.y0};case"line":return{x:e.xPosition,y:e.yPosition}}},OC=(e,t)=>{switch(e){case"small":return{arrowStartGap:6,arrowEndGap:6,offsetFromHighestDataPoint:15,arrowheadSize:5,curveRadius:15,strokeWidth:2,labelLineHeight:12*t,labelPadding:3,labelStrokeWidth:1,toolbarOffset:hX(2)};case"medium":return{arrowStartGap:9,arrowEndGap:9,offsetFromHighestDataPoint:18.75,arrowheadSize:7.5,curveRadius:18.75,strokeWidth:3,labelLineHeight:16*t,labelPadding:4,labelStrokeWidth:1.5,toolbarOffset:hX(2.5)};case"large":return{arrowStartGap:12,arrowEndGap:12,offsetFromHighestDataPoint:26.25,arrowheadSize:12.5,curveRadius:22.5,strokeWidth:5,labelLineHeight:20*t,labelPadding:5,labelStrokeWidth:2,toolbarOffset:hX(3)}}},Ov=p.I4.path(o8()),Oj=p.I4.path(le()),OA=e=>{let{differenceArrow:t,attributes:n,plotEffect:r}=e,i=(0,M.useId)(),o=mu("textScale");if(!t)return null;let{linePath:l,arrowheadPath:a,arrowColor:s}=t,{strokeWidth:u}=OC(n.size,o),c={stroke:s,strokeWidth:u,strokeLinecap:"round"};return(0,h.jsxs)(h.Fragment,{children:["neon"===r&&(0,h.jsx)(LW,{shapeId:i,blur:3}),(0,h.jsxs)("g",{children:[(0,h.jsx)(Ov,Object.assign({id:i,d:l},c)),(0,h.jsx)(Oj,Object.assign({d:a},c))]})]})},Ow=(0,M.createContext)(null),Ok=uD(Ow,"DifferenceArrowProvider"),OP=e=>{let{children:t}=e,[n,r]=(0,M.useState)(!1),i=(0,M.useMemo)(()=>({isDragging:n,setIsDragging:r}),[n]);return(0,h.jsx)(Ow.Provider,{value:i,children:t})},OS=e=>{let{arrowEnd:t,x:n,y:r,findNearestDataPoint:i,zoom:o,onFindNearestDataPoint:l}=e,a=(0,M.useRef)(n),s=(0,M.useRef)(r),{setIsDragging:u}=Ok(),c=gX({preventDefault:!1,dragThreshold:0,onDragStart:()=>{a.current=n,s.current=r,u(!0)},onDrag:e=>{let n=i({from:t,x:a.current+e.deltaX/o,y:s.current+e.deltaY/o});n&&l(n),document.body.style.cursor="grabbing"},onDragEnd:()=>{u(!1),document.body.style.cursor="grab"}});return gK(()=>{c.cleanup()}),c},OL=e=>{let{annotationId:t,differenceArrow:{startControlPointPosition:n,endControlPointPosition:r,findNearestDataPoint:i,startDataPointId:o,endDataPointId:l},onUpdate:a,isEditorFocused:s,isEditorHovered:u,zoom:c=1}=e,{x:d,y:p}=n,{x:g,y:f}=r,m=OS({arrowEnd:"start",x:d,y:p,zoom:c,findNearestDataPoint:i,onFindNearestDataPoint(e){a(t,e.id,l)}}),y=OS({arrowEnd:"end",x:g,y:f,zoom:c,findNearestDataPoint:i,onFindNearestDataPoint(e){a(t,o,e.id)}}),{isDragging:b}=Ok(),x=mh();return(0,h.jsxs)("g",{cursor:b?"grabbing":"grab",opacity:s?1:.75*!!u,children:[(0,h.jsx)("circle",Object.assign({cx:d,cy:p,r:5,fill:x.values.annotationFrameBorderColor},m.dragProps)),(0,h.jsx)("circle",Object.assign({cx:g,cy:f,r:5,fill:x.values.annotationFrameBorderColor},y.dragProps))]})},OM=p.I4.g(lt()),OO=e=>{let{annotationId:t,value:n,onAttributeUpdate:r,seriesColorOptions:i}=e,o=(0,Z.s9)();return(0,h.jsx)(j2,{onChange:e=>{r(t,"color",e)},value:n,seriesColorOptions:i,tooltip:o("graph.annotations.differenceArrow.color")})},OT=p.I4.div(ln()),OD=e=>{let{annotationId:t,attributes:n,onAttributeUpdate:r}=e,i=(0,Z.s9)(),o=[{value:"small",label:i("graph.annotations.differenceArrow.size.small")},{value:"medium",label:i("graph.annotations.differenceArrow.size.medium")},{value:"large",label:i("graph.annotations.differenceArrow.size.large")}],l=o.find(e=>e.value===n.size);return(0,h.jsx)(wh,{variant:"subtle",options:o,value:l,onChange:e=>{r(t,"size",e.value)},shouldFitContent:!0,renderValue:()=>(0,h.jsx)(OT,{children:(0,h.jsx)(xQ,{})}),tooltip:{label:i("graph.annotations.differenceArrow.size.label"),hasInvertedTheme:!1}})},OI=p.I4.div(lr(),hW,sz.lg,sE.sm,h_(.5),uv("textPrimary"),uv("overlayBackground"),sH(uv("overlayBorderGradient"),1,"lg")),Oz=e=>{let{annotationId:t,attributes:n,onAttributeUpdate:r,differenceArrow:i}=e,o=(0,Z.s9)(),l={"absolute-difference":o("graph.annotations.differenceArrow.type.difference"),"relative-difference":o("graph.annotations.differenceArrow.type.percentageChange"),proportion:o("graph.annotations.differenceArrow.type.proportion")},a=pC.options.map(e=>({value:e,label:l[e]})),s=a.find(e=>e.value===n.type);return(0,h.jsx)(wh,{variant:"subtle",options:a,value:s,onChange:e=>{r(t,"type",e.value)},shouldFitContent:!0,renderItem:e=>{let{option:t,menuItemProps:n}=e;return(0,h.jsx)(AZ,Object.assign({},n,{children:OE(t.value,i,o)}))}})},OE=(e,t,n)=>{let{absoluteDifference:r,percentageChange:i,proportion:o,trend:l}=t;switch(e){case"absolute-difference":{let e=n("graph.annotations.differenceArrow.type.difference",{absoluteDifference:r});return l>0&&(e=n("graph.annotations.differenceArrow.type.increase",{absoluteDifference:r})),l<0&&(e=n("graph.annotations.differenceArrow.type.decrease",{absoluteDifference:r})),e}case"relative-difference":{let e=n("graph.annotations.differenceArrow.type.percentageChange",{percentageChange:i});return l>0&&(e=n("graph.annotations.differenceArrow.type.percentIncrease",{percentageChange:i})),l<0&&(e=n("graph.annotations.differenceArrow.type.percentDecrease",{percentageChange:i})),e}case"proportion":return"".concat(n("graph.annotations.differenceArrow.type.proportion")," (").concat(o,")")}},OH=e=>{let{annotationId:t,differenceArrow:n,onConnect:r}=e,i=(0,Z.s9)();return(0,h.jsx)(jd,{label:i("graph.annotations.differenceArrow.flipArrow"),hasInvertedTheme:!1,children:(0,h.jsx)(vK,{onClick:()=>{r(t,n.endDataPointId,n.startDataPointId)},variant:"subtle",iconBefore:(0,h.jsx)(xF,{})})})},OV=M.forwardRef(function(e,t){let{isVisible:n,floatingStyles:r,annotationId:i,attributes:o,onAttributeUpdate:l,onConnect:a,onDelete:s,differenceArrow:u,seriesColorOptions:c}=e,d=(0,Z.s9)(),p=ml();if(!n)return null;let g={annotationId:i,attributes:o,onAttributeUpdate:l,onConnect:a,differenceArrow:u};return(0,h.jsx)(my,{container:null==p?void 0:p.container,zIndex:s_.toolbar,children:(0,h.jsxs)(OI,{ref:t,role:"toolbar","aria-label":d("graph.annotations.differenceArrow.toolbarAriaLabel"),style:r,children:[(0,h.jsx)(Oz,Object.assign({},g)),(0,h.jsx)(OO,Object.assign({},g,{seriesColorOptions:c,value:u.arrowColor})),(0,h.jsx)(OD,Object.assign({},g)),(0,h.jsx)(OH,Object.assign({},g)),(0,h.jsx)(M8,{onDelete:s,annotationId:i})]})})}),OF=e=>{let{differenceArrow:t,isEditorFocused:n,isEditorHovered:r}=e,i=mh(),o=mu("textScale");return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("path",{d:t.linePath,fill:"none",stroke:"none",strokeWidth:15*o,strokeLinecap:"round",pointerEvents:"visibleStroke"}),(r||n)&&(0,h.jsx)("path",{pointerEvents:"none",d:t.linePath,fill:"none",stroke:i.values.annotationFrameBorderColor,strokeWidth:1,strokeOpacity:n?1:.75})]})},OB=M.forwardRef(function(e,t){var{annotationId:n,isFocused:r,isHovered:i,isInteractive:o=!1,isEditable:l=!1,zoom:a,differenceArrow:s,onConnect:u,onDelete:c,attributes:d,onAttributeUpdate:p,seriesColorOptions:g,toolbarRef:f}=e,m=sJ(e,["annotationId","isFocused","isHovered","isInteractive","isEditable","zoom","differenceArrow","onConnect","onDelete","attributes","onAttributeUpdate","seriesColorOptions","toolbarRef"]);let y=(0,Z.s9)(),b=mu("textScale"),{toolbarOffset:x}=OC(d.size,b),{setEditorContainer:C,setToolbarContainer:v,floatingStyles:j}=Og({isVisible:r,offset:x}),A=g4([t,C]),w=g4([f,v]);return o&&l&&s?(0,h.jsxs)(OM,Object.assign({ref:A,tabIndex:0,"aria-label":y("graph.annotations.differenceArrow.editorAriaLabel")},m,{children:[(0,h.jsx)(OF,{differenceArrow:s,isEditorFocused:r,isEditorHovered:i}),(0,h.jsx)(OL,{annotationId:n,differenceArrow:s,onUpdate:u,isEditorFocused:r,isEditorHovered:i,zoom:a}),(0,h.jsx)(OV,{ref:w,isVisible:r,floatingStyles:j,annotationId:n,attributes:d,onAttributeUpdate:p,onConnect:u,onDelete:c,differenceArrow:s,seriesColorOptions:g})]})):null}),OR=p.I4.svg(li()),OY=p.I4.g(lo()),OG=p.I4.rect(ll(),uv("grey100")),OU=p.I4.text(la(),e=>{let{$size:t}=e;switch(t){case"small":return sx;case"medium":return sC;case"large":return sv}}),OW=()=>{let e=yG();return(0,M.useCallback)(t=>{let{attributes:n,labelPosition:r,labelColor:i,percentageChange:o,absoluteDifference:l,proportion:a}=t,s=(0,h.jsx)(OU,Object.assign({},r,{$size:n.size,fill:i,textAnchor:"middle",dominantBaseline:"central",children:ON({attributes:n,absoluteDifference:l,percentageChange:o,proportion:a})}));return{measuredLabel:e(s),label:s}},[e])},ON=e=>{let{attributes:t,absoluteDifference:n,percentageChange:r,proportion:i}=e;switch(t.type){case"absolute-difference":return n;case"relative-difference":return r;case"proportion":return i}},OK=e=>{let{differenceArrow:t,attributes:n,focusAnnotation:r,crossPosition:i,setCrossPosition:o,isEditable:l,flipAxes:a}=e,s=mu("textScale"),u=OW(),{measuredLabel:c,label:d}=(0,M.useMemo)(()=>t?u(Object.assign({attributes:n},t)):{measuredLabel:{width:0},label:null},[n,t,u]),p=(0,M.useRef)(i),{dragProps:g,cleanup:f}=gX({blockPagePointerEvents:!0,dragThreshold:0,onDragStart:()=>{p.current=i},onDrag:e=>{let{deltaX:n,deltaY:r}=e;t&&(document.body.style.setProperty("cursor",null),o((0,k.A)(p.current+(a?r:n)/(null==t?void 0:t.crossSize),0,1)))},onDragEnd(){r()}});gK(f);let{isInHighlightMode:m}=xp();if(!t||!d)return null;let{labelLineHeight:y,labelPadding:b,labelStrokeWidth:x}=OC(n.size,s);return(0,h.jsxs)(OY,Object.assign({},l?g:{},{style:{cursor:l?"grab":"default",pointerEvents:m?"none":"auto"},children:[(0,h.jsx)(OG,{x:t.labelPosition.x-c.width/2-b,y:t.labelPosition.y-y/2-b,width:c.width+2*b,height:y+2*b,rx:4,stroke:t.arrowColor,strokeWidth:x}),d]}))},OZ=e=>{let{annotation:t,getConnectedDataPointIds:n}=e,{start:r,end:i}=n(t),{isDragging:o}=Ok(),l=C_().filter(e=>e.id!==r&&e.id!==i),a=mh();return r&&i&&o?(0,h.jsx)(h.Fragment,{children:l.map(e=>{let t=Ox(e);return(0,h.jsx)("circle",{cx:t.x,cy:t.y,r:5,fill:"none",stroke:a.values.textPrimary,strokeOpacity:.5,strokeWidth:1},e.id)})}):null},OX=e=>{let{intl:t,attributes:n,flipAxes:r,textScale:i,startDataPoint:o,endDataPoint:l,labelCrossPosition:a}=e,s=OC(n.size,i),u=Ox(o),c=Ox(l),d=Oq(r,u,c),p=O_(r,u,c,s);return{labelPosition:OQ(r,u,c,p,d,a),percentageChange:fX({intl:t,differenceLabelType:"relative-difference",startValue:null==o?void 0:o.yValue,endValue:null==l?void 0:l.yValue}),absoluteDifference:fX({intl:t,differenceLabelType:"absolute-difference",startValue:null==o?void 0:o.yValue,endValue:null==l?void 0:l.yValue}),proportion:fX({intl:t,differenceLabelType:"proportion",startValue:null==o?void 0:o.yValue,endValue:null==l?void 0:l.yValue}),trend:OJ(o,l),crossSize:d}},O_=(e,t,n,r)=>{let i=r.offsetFromHighestDataPoint+r.arrowheadSize+r.arrowEndGap;return e?Math.max(t.x,n.x)+i:Math.min(t.y,n.y)-i},OQ=function(e,t,n,r,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:.5;return e?{x:r,y:Math.min(t.y,n.y)+o*i}:{x:Math.min(t.x,n.x)+o*i,y:r}},OJ=(e,t)=>{if(!e||!t||null===e.yValue||null===t.yValue)return 0;let n=fl(e.yValue),r=fl(t.yValue);return r>n?1:re?Math.abs(t.y-n.y):Math.abs(t.x-n.x),O$=()=>{let e=C_();return(0,M.useCallback)((t,n)=>{let{start:r,end:i}=n(t);return{startDataPoint:e.find(e=>e.id===r),endDataPoint:e.find(e=>e.id===i),startDataPointId:r,endDataPointId:i}},[e])},O1=e=>{let{annotation:t,getConnectedDataPointIds:n}=e,{startDataPoint:r,endDataPoint:i,startDataPointId:o,endDataPointId:l}=O$()(t,n);return r&&i?(0,h.jsx)(O0,Object.assign({},e,{startDataPoint:r,endDataPoint:i,startDataPointId:o,endDataPointId:l})):null},O0=e=>{var t,{startDataPoint:n,endDataPoint:r,startDataPointId:i,endDataPointId:o,annotation:l,getConnectedDataPointIds:a,onAttributeUpdate:s,onDelete:u,zIndex:c,isNew:d,isEditable:p,plotEffect:g}=e,f=sJ(e,["startDataPoint","endDataPoint","startDataPointId","endDataPointId","annotation","getConnectedDataPointIds","onAttributeUpdate","onDelete","zIndex","isNew","isEditable","plotEffect"]);let m=mu("overPlotPortalId"),y=gZ(s,200),[b,x]=(0,M.useState)(null!=(t=l.config.attributes.labelCrossPosition)?t:.5),C=(0,M.useRef)(null),v=(0,M.useRef)(null),j=l.config.attributes,A=(e=>{var t;let{annotation:n,attributes:r,startDataPoint:i,endDataPoint:o,startDataPointId:l,endDataPointId:a,labelCrossPosition:s}=e,u=(0,B.A)(),c=mh(),d=mu("textScale"),p=C_(),h=xX(),g=null!=(t=null==i?void 0:i.flipAxes)&&t,f=(0,M.useMemo)(()=>(e=>{var t;let{resolveCssColor:n,theme:r,startDataPoint:i,endDataPoint:o,annotation:l}=e;if(!i||!o)return{defaultArrowColor:r.values.defaultArrowAnnotationColor,arrowColor:r.values.defaultArrowAnnotationColor,labelColor:r.values.textPrimary};let a=i.vizColor===o.vizColor?i.vizColor:r.values.defaultArrowAnnotationColor,s=M2(r),u=l.config.attributes.color;return u?{defaultArrowColor:a,arrowColor:null!=(t=s(n,u).color)?t:"",labelColor:r.values.textPrimary}:{defaultArrowColor:a,arrowColor:a,labelColor:r.values.textPrimary}})({resolveCssColor:h,theme:c,startDataPoint:i,endDataPoint:o,annotation:n}),[n,o,h,i,c]);return(0,M.useMemo)(()=>{let e=OC(r.size,d),t=Ox(i),n=Ox(o),c=O_(g,t,n,e),h=(g?(e,t,n,r)=>{let{arrowStartGap:i,arrowEndGap:o,curveRadius:l}=r,a=e.x+i,s=e.y,u=e.y,c=t.y,d=t.x+o,p=t.y,h=t.y>e.y?1:-1;return"\n M ".concat(a," ").concat(s,"\n L ").concat(n-l," ").concat(u,"\n Q ").concat(n," ").concat(u," ").concat(n," ").concat(u+h*l,"\n L ").concat(n," ").concat(c-h*l,"\n Q ").concat(n," ").concat(c," ").concat(n-l," ").concat(c,"\n L ").concat(d," ").concat(p,"\n ")}:(e,t,n,r)=>{let{arrowStartGap:i,arrowEndGap:o,curveRadius:l}=r,a=e.x,s=e.y-i,u=e.x,c=t.x,d=t.x,p=t.y-o,h=t.x>e.x?1:-1;return"\n M ".concat(a," ").concat(s,"\n L ").concat(u," ").concat(n+l,"\n Q ").concat(u," ").concat(n," ").concat(u+h*l," ").concat(n,"\n L ").concat(c-h*l," ").concat(n,"\n Q ").concat(c," ").concat(n," ").concat(c," ").concat(n+l,"\n L ").concat(d," ").concat(p,"\n ")})(t,n,c,e),m=((e,t,n)=>{let{arrowEndGap:r,arrowheadSize:i}=n;return e?"\n M ".concat(t.x+r+i," ").concat(t.y-i,"\n L ").concat(t.x+r," ").concat(t.y,"\n L ").concat(t.x+r+i," ").concat(t.y+i,"\n "):"\n M ".concat(t.x-i," ").concat(t.y-r-i,"\n L ").concat(t.x," ").concat(t.y-r,"\n L ").concat(t.x+i," ").concat(t.y-r-i,"\n ")})(g,n,e),{labelPosition:y,percentageChange:b,absoluteDifference:x,proportion:C,trend:v,crossSize:j}=OX({intl:u,attributes:r,flipAxes:g,textScale:d,startDataPoint:i,endDataPoint:o,labelCrossPosition:s}),A=e=>{let{from:t,x:n,y:r}=e;return p.filter(e=>(e.id!==l||"start"===t)&&(e.id!==a||"end"===t)).reduce((e,t)=>{let i=Math.sqrt(Math.pow(t.xPosition-n,2)+Math.pow(t.yPosition-r,2));return i{x(e),y(l.id,"labelCrossPosition",e)},isEditable:p,flipAxes:n.flipAxes})})}),(0,h.jsx)(OZ,{annotation:l,getConnectedDataPointIds:a})]})},O2=(e,t)=>O5(e.groupValues)!==O5(t.groupValues),O5=e=>e.map(yC).join("#separator#"),O3=e=>{let{deltaX:t,deltaY:n,startX:r,startY:i,startWidth:o,startHeight:l,chartWidth:a,chartHeight:s,anchor:u}=e,c=r,d=i,p=o,h=l;if(u.includes("right")&&(p+=t),u.includes("bottom")&&(h+=n),u.includes("left")){let e=o-20;c+=(0,k.A)(t,-r,e),p-=(0,k.A)(t,-r,e)}if(u.includes("top")){let e=l-20;h-=(0,k.A)(n,-i,e),d+=(0,k.A)(n,-i,e)}let g=Math.max(0,c),f=Math.max(0,d);return{x:g/a,y:f/s,width:(0,k.A)(p,20,a-g)/a,height:(0,k.A)(h,20,s-f)/s}},O7=p.I4.div(ls()),O9=p.I4.div(lu(),10,10,uv("annotationFrameBorderColor"),5),O4=(0,p.I4)(O9)(lc()),O6=(0,p.I4)(O9)(ld()),O8=(0,p.I4)(O9)(lp()),Te=(0,p.I4)(O9)(lh()),Tt=(0,M.forwardRef)((e,t)=>{let{isHovered:n,isFocused:r,isInteracting:i,annotation:o,onAttributesUpdate:l,setInteractingState:a,focusAnnotation:s}=e,u=mu("chartWidth"),c=mu("chartHeight"),d=o.config.x*u,p=o.config.y*c,g=o.config.width*u,f=o.config.height*c,m=u-g,y=c-f,b=(0,M.useRef)(d),x=(0,M.useRef)(p),C=(0,M.useRef)(g),v=(0,M.useRef)(f),j=(0,M.useRef)(""),A=()=>{b.current=d,x.current=p,C.current=g,v.current=f,s(),a({config:o.config,isInteracting:!0})},w=e=>{l(o.id,e),setTimeout(()=>{a(e=>Object.assign(Object.assign({},e),{isInteracting:!1}))},0)},P=gX({dragThreshold:0,onDragStart:A,onDrag(e){let{deltaX:t,deltaY:n}=e,r=(0,k.A)(b.current+t,0,m),i=(0,k.A)(x.current+n,0,y);a(e=>Object.assign(Object.assign({},e),{config:Object.assign(Object.assign({},e.config),{x:r/u,y:i/c})}))},onDragEnd(e){let{deltaX:t,deltaY:n}=e;w({x:(0,k.A)(b.current+t,0,m)/u,y:(0,k.A)(x.current+n,0,y)/c})}}),S=gX({dragThreshold:0,onPointerDown(e){j.current=e.currentTarget.getAttribute("data-anchor")||""},onDragStart:A,onDrag(e){let{deltaX:t,deltaY:n}=e;a(e=>Object.assign(Object.assign({},e),{config:Object.assign(Object.assign({},e.config),O3({deltaX:t,deltaY:n,startX:b.current,startY:x.current,startWidth:C.current,startHeight:v.current,chartWidth:u,chartHeight:c,anchor:j.current}))}))},onDragEnd(e){let{deltaX:t,deltaY:n}=e;w(O3({deltaX:t,deltaY:n,startX:b.current,startY:x.current,startWidth:C.current,startHeight:v.current,chartWidth:u,chartHeight:c,anchor:j.current}))}});return gK(()=>{P.cleanup(),S.cleanup()}),(0,h.jsxs)(O7,Object.assign({ref:t,style:{opacity:r||i?1:.75*!!n,cursor:"move"}},P.dragProps,{children:[(0,h.jsx)(O4,Object.assign({"data-anchor":"top-left"},S.dragProps)),(0,h.jsx)(O6,Object.assign({"data-anchor":"top-right"},S.dragProps)),(0,h.jsx)(O8,Object.assign({"data-anchor":"bottom-left"},S.dragProps)),(0,h.jsx)(Te,Object.assign({"data-anchor":"bottom-right"},S.dragProps))]}))});Tt.displayName="ShapeAnnotationControls";let Tn=p.I4.div(lg()),Tr=p.I4.svg(lf()),Ti=e=>{let{seriesColorOptions:t,annotation:n,onAttributesUpdate:r}=e,i=(0,Z.s9)();return(0,h.jsx)(j2,{tooltip:i("graph.annotations.shape.color"),value:n.config.fillColor,onChange:e=>{r(n.id,{fillColor:e})},seriesColorOptions:t,showOpacitySlider:!0,opacityValue:n.config.fillOpacity,onOpacityChange:e=>{r(n.id,{fillOpacity:e})}})},To=e=>{let{annotation:t,onAttributesUpdate:n}=e,r=(0,Z.s9)(),i=[{value:"0",label:r("graph.annotations.shape.border.none")},{value:"2",label:r("graph.annotations.shape.border.thin",{value:"2px"})},{value:"8",label:r("graph.annotations.shape.border.medium",{value:"8px"})},{value:"16",label:r("graph.annotations.shape.border.thick",{value:"16px"})}],o=i.find(e=>e.value===String(t.config.strokeWidth))||i[0];return(0,h.jsx)(wh,{options:i,value:o,onChange:e=>{n(t.id,{strokeWidth:Number(e.value)})},shouldFitContent:!0,variant:"subtle",renderValue:()=>(0,h.jsx)(xQ,{}),tooltip:{label:r("graph.annotations.shape.border.label"),hasInvertedTheme:!1}})},Tl=p.I4.div(lm(),uv("overlayBackground"),sz.lg,sE.sm,h_(.5),sU.modern,sH(uv("overlayBorderGradient"),1,"lg")),Ta=(0,M.forwardRef)((e,t)=>{let{annotation:n,onAttributesUpdate:r,onDelete:i,seriesColorOptions:o}=e;return(0,h.jsxs)(Tl,{role:"toolbar",ref:t,children:[(0,h.jsx)(Ti,{annotation:n,onAttributesUpdate:r,seriesColorOptions:o}),(0,h.jsx)(To,{annotation:n,onAttributesUpdate:r}),(0,h.jsx)(M8,{annotationId:n.id,onDelete:i})]})});Ta.displayName="ShapeAnnotationToolbar";let Ts=e=>{let{annotation:t,onDuplicate:n,onDelete:r,onAttributesUpdate:i,zIndex:o,isNew:l,isEditable:a,seriesColorOptions:s}=e,[u,c]=(0,M.useState)(null),d=mu("underPlotPortalId"),p=b3("plotOffsetX"),g=b3("plotOffsetY"),f=b3("plotWidth"),m=b3("plotHeight"),y=(0,M.useRef)(null),b=(0,M.useRef)(null),{editorHandlers:x,isFocused:C,isHovered:v,blurAnnotation:j,focusAnnotation:A}=M_({id:t.id,editorRef:b,toolbarRef:y,isNew:l});MQ({annotationId:t.id,isEditable:a,isFocused:C,onDelete:r,onDuplicate:n,onEscPress(){var e;null==(e=b.current)||e.blur(),j()}});let[w,k]=(0,M.useState)({config:t.config,isInteracting:!1}),{isInHighlightMode:P}=xp(),S=w.isInteracting?w.config:t.config,L=S.x*f,O=S.y*m,T=S.width*f,D=S.height*m;return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(my,{container:document.getElementById(d),children:(0,h.jsx)(Tr,{width:T,height:D,style:{left:p+L,top:g+O,pointerEvents:P?"none":"auto"},children:(0,h.jsx)("rect",{x:"0",y:"0",width:T,height:D,fill:S.fillColor,fillOpacity:S.fillOpacity,strokeWidth:S.strokeWidth,stroke:S.fillColor})})}),a&&(0,h.jsx)(Tn,Object.assign({},x,{ref:b,tabIndex:0,style:{zIndex:o,left:L,top:O,width:T,height:D,pointerEvents:P?"none":"auto"},children:(0,h.jsx)(Tt,{ref:c,isHovered:v,isFocused:C,isInteracting:w.isInteracting,annotation:t,onAttributesUpdate:i,setInteractingState:k,focusAnnotation:A})})),(0,h.jsx)(jf,{anchorElement:u,isWithinPortal:!0,isOpen:C,placement:"top",offset:[0,8],children:()=>(0,h.jsx)(Ta,{ref:y,annotation:t,onAttributesUpdate:i,onDelete:r,seriesColorOptions:s})})]})},Tu=(0,e6.yX)([e6.zW,e6.sx,e6.cM]),Tc=e=>{let{id:t,annotationRef:n,onDrag:r,onResize:i}=e,o=((e,t)=>{let n=b3("plotHeight"),r=b3("plotWidth");return{draggable:!0,onDrag:i=>{let{target:o,translate:[l,a]}=i;void 0!==l&&void 0!==a&&(o.style.transform="translateY(-50%) translate(".concat(hQ(l),"px, ").concat(hQ(a),"px)"),t(e,l/r,a/n))}}})(t,r),l=((e,t)=>{let n=b3("plotHeight"),r=b3("plotWidth");return{resizable:!0,keepRatio:!1,onResizeStart:e=>{let{setMin:t}=e;t([30,0])},onResize:i=>{let{target:o,width:l,drag:{translate:[a,s],dist:[,u]}}=i;void 0!==l&&void 0!==a&&void 0!==s&&void 0!==u&&(o.focus(),o.style.transform="translateY(-50%) translate(".concat(hQ(a),"px, ").concat(hQ(s-u),"px)"),o.style.width="".concat(hQ(l),"px"),t(e,a/r,(s-u)/n,l/r))},onResizeEnd:e=>{let{target:t}=e;t.focus()},edge:["w","e"],renderDirections:["w","e"]}})(t,i),a={snappable:!0,bounds:Object.assign({position:"css"},Om())};return(0,h.jsx)(Tu,Object.assign({flushSync:R.flushSync,target:n},o,l,a,{useResizeObserver:!0,useMutationObserver:!0,origin:!1,preventDefault:!1}))},Td=p.I4.div(lb(),uv("textPrimary"),e=>{let{$canReceivePointerEvents:t}=e;return t?"auto":"none"},e=>{let{$isEditing:t}=e;return t?"text":"default"},kl,e=>{let{$isEditing:t}=e;return!t&&(0,p.AH)(ly())}),Tp=e=>{let{chartTheme:t,color:n,backgroundStyle:r="opaque"}=e;return"transparent"===n?{fillColor:"transparent",borderColor:"transparent"}:"fade"===r?{fillColor:uk(n,t.values.grey100,.5),borderColor:uk(n,t.values.grey0,.2)}:dI(n)},Th=e=>{var t;let{annotation:n,onEdit:r,onAttributesUpdate:i,onDelete:o,editorRef:l,isEditable:a,isInteractive:s,isFocused:u,isNew:c,inheritedFont:d,seriesColorOptions:p}=e,g=(0,Z.s9)(),[f,m]=(0,M.useState)(!1),y=gG(e=>e.theme.canvasColors),b=xX(),x=null!=(t=n.config.backgroundColor)?t:"transparent",C=gG(e=>e.theme),{fillColor:v,borderColor:j}=(0,M.useMemo)(()=>Tp({chartTheme:C,color:b(x),backgroundStyle:n.config.backgroundColorStyle}),[n.config.backgroundColorStyle,x,C,b]);return(0,h.jsx)(Td,{$canReceivePointerEvents:u&&s,$isEditing:f,style:{backgroundColor:v,boxShadow:"0 0 0 1.5px ".concat(j)},children:a?(0,h.jsx)(S_,{ref:l,annotation:n,placeholder:g("graph.annotations.textMenu.textPlaceholder"),onAttributesUpdate:i,onDelete:()=>{o(n.id)},onUpdate:()=>{var e,t;let i=null==(t=null==(e=l.current)?void 0:e.editor)?void 0:t.getJSON();i&&r(n.id,i)},spellCheck:f,onFocus:()=>{var e,t;m(!0),null==(t=null==(e=l.current)?void 0:e.editor)||t.commands.selectAll()},onBlur:()=>{var e,t,r;m(!1),(null==(t=null==(e=l.current)?void 0:e.editor)?void 0:t.isEmpty)?o(n.id):null==(r=window.getSelection())||r.removeAllRanges()},autofocus:c,isToolbarVisible:u,inheritedFont:d,seriesColorOptions:p,getBackgroundColorStyles:e=>Tp({chartTheme:C,color:e,backgroundStyle:SG(y,e)})}):(0,h.jsx)(SJ,{content:n.config.content})})},Tg=(0,p.AH)(lx(),.75),Tf=(0,p.AH)(lC(),1,uv("annotationFrameBorderColor")),Tm=p.I4.div(lj(),e=>{let{$isEditable:t,$isInteractive:n}=e;return t&&n?"auto":"none"},Tg,e=>{let{$isFocused:t}=e;return t&&(0,p.AH)(lv(),Tf)},uv("alert"),0,Tg,uv("annotationFrameBorderColor"),uv("annotationFrameBorderColor")),Ty=e=>{let{x:t,y:n,width:r,plotWidth:i,plotHeight:o,bounds:l}=e,a=hQ(r*i);a>-l.left+i-l.right&&(a=-l.left+i-l.right);let s=hQ(t*i);return si-l.right&&(s=i-l.right-a),{transform:"translateY(-50%) translate(".concat(s,"px, ").concat(hQ(n*o),"px)"),width:a}},Tb=e=>{let{zIndex:t,isNew:n,annotation:r,onDuplicate:i,onDelete:o,onDrag:l,onAttributeUpdate:a,onResize:s,onTextEdit:u,isEditable:c=!1,isInteractive:d=!1,inheritedFont:p,seriesColorOptions:g}=e,f=(0,M.useRef)(null),m=(0,M.useRef)(null),{isFocused:y,frameHandlers:b,setIsFocused:x}=(e=>{let{id:t,isEditable:n,annotationRef:r}=e,{setFocusedAnnotationId:i,focusedAnnotationId:o}=MZ(),[l,a]=(0,M.useState)(!1);return(0,M.useEffect)(()=>{let e=e=>{var t;n&&l&&(e.target instanceof Element&&(null==(t=r.current)?void 0:t.contains(e.target))||e.target instanceof Element&&e.target.closest('[role="toolbar"][aria-label="Free-form text toolbar"]')||(a(!1),i(null)))};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[r,n,l,i]),(0,M.useEffect)(()=>{null!==o&&o!==t&&a(!1)},[o,t]),gK(()=>{o===t&&i(null)}),{isFocused:l,setIsFocused:a,frameHandlers:{onFocus:()=>{n&&(a(!0),i(t))}}}})({id:r.id,isEditable:c,annotationRef:f});MQ({annotationId:r.id,isEditable:c,isFocused:y,textEditorRef:m,onDuplicate:i,onDelete:o,onEscPress(){var e,t;x(!1),null==(t=null==(e=m.current)?void 0:e.editor)||t.commands.blur()}});let C=(e=>{let{x:t,y:n,width:r}=e,i=Om(),o=b3("plotHeight"),l=b3("plotWidth"),[a,s]=(0,M.useState)(Ty({x:t,y:n,width:r,plotWidth:l,plotHeight:o,bounds:i}));return(0,M.useEffect)(()=>{s(Ty({x:t,y:n,width:r,plotWidth:l,plotHeight:o,bounds:i}))},[l,o,i.top,i.right,i.bottom,i.left]),a})(r.config.dimensions);return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(Tm,Object.assign({ref:f},b,{tabIndex:c?0:void 0,$isEditable:c,$isInteractive:d,$isFocused:y,style:Object.assign(Object.assign({},C),{zIndex:t}),children:(0,h.jsx)(Th,{annotation:r,onEdit:u,onDelete:o,onAttributesUpdate:a,editorRef:m,isEditable:c,isInteractive:d,isFocused:y,isNew:n,inheritedFont:p,seriesColorOptions:g})})),c&&d&&(0,h.jsx)(Tc,{id:r.id,annotationRef:f,onDrag:l,onResize:s})]})},Tx={initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:fq},TC=e=>{var t;let{isEditable:n=!1,zoom:r=1,plotEffect:i,annotations:o,onAddShape:l,onAddTextAnnotation:a,onAddArrow:s,onAddDifferenceArrow:u,onDuplicate:c,onDelete:d,onDragTextAnnotation:p,onResizeTextAnnotation:g,onTextEdit:f,onTextAttributeUpdate:m,onArrowPointsUpdate:y,onArrowAttributeUpdate:b,getConnectedDataPointIds:x,onDifferenceArrowConnect:C,onDifferenceArrowAttributeUpdate:j,onShapeAttributesUpdate:A,seriesColorOptions:w,flipAxes:k}=e,P=mu("overPlotPortalId"),S=b3("plotOffsetX"),L=b3("plotOffsetY"),O=b3("plotWidth"),T=b3("plotHeight"),D=mu("font"),{canUserInteractWithAddon:I,annotationsAddonRef:z}=xp(),E=I("annotations"),H=(0,M.useCallback)(()=>{t(.375,.25,.25,.5)},[t=l]),V=(e=>(0,M.useCallback)((t,n,r)=>{e(t-.1,n,.2,r)},[e]))(a),F=(e=>{let t=b3("plotWidth"),n=b3("plotHeight");return(0,M.useCallback)((r,i,o)=>{let l=.15*Math.min(t,n);e(r-l*Math.cos(o)/t,i-l*Math.sin(o)/n,r+l*Math.cos(o)/t,i+l*Math.sin(o)/n)},[e,n,t])})(s),R=(e=>{let{allAnnotations:t,getConnectedDataPointIds:n,onAdd:r}=e,i=C_(),o=(0,M.useMemo)(()=>[...(0,er.Ay)(i,e=>O5(e.groupValues)).values()].map(e=>{var t,n;let r=null!=(n=null==(t=e[0])?void 0:t.flipAxes)&&n;return(0,v.A)(e,r?"yPosition":"xPosition","desc")}).flat(),[i]);return(0,M.useCallback)(()=>{let e=t.filter(e=>"difference-arrow"===e.config.type);for(let t=0;t{let t=n(e);return t.start===i.id&&t.end===l.id||t.start===l.id&&t.end===i.id}))return void r(i.id,l.id)}},[t,n,r,o])})({allAnnotations:o,getConnectedDataPointIds:x,onAdd:u});(0,M.useImperativeHandle)(z,()=>({addText:V,addArrow:F,addShape:H,addDifferenceArrow:R}));let{focusedAnnotationId:Y}=MZ(),G=(e=>{let{annotations:t}=e,n=(0,M.useRef)(t.map(e=>e.id));return(0,M.useCallback)(e=>!n.current.includes(e)&&(n.current.push(e),!0),[])})({annotations:o});return(e=>{let{annotations:t,getConnectedDataPointIds:n,flipAxes:r}=e,i=(0,B.A)(),o=(0,M.useMemo)(()=>t.filter(e=>"difference-arrow"===e.config.type),[t]),l=mu("textScale"),a=O$(),s=OW(),u=b3("plotWidth"),c=mu("setPlotPadding");(0,M.useEffect)(()=>{let e=0;for(let t of o){let o=t.config.attributes,{startDataPoint:c,endDataPoint:d}=a(t,n),p=OX({intl:i,attributes:o,flipAxes:r,textScale:l,startDataPoint:c,endDataPoint:d}),{measuredLabel:h}=s(Object.assign({attributes:o,labelColor:"none"},p)),{labelLineHeight:g,labelPadding:f}=OC(o.size,l),m=r?p.labelPosition.x+h.width/2+f-u:-(p.labelPosition.y-g/2-f);m>e&&(e=m)}c(e)},[o,r,n,a,i,s,u,c,l])})({annotations:o,getConnectedDataPointIds:x,flipAxes:k}),(0,h.jsx)(my,{container:document.getElementById(P),zIndex:mt.annotations,resetFontSize:!1,children:(0,h.jsxs)(MU,Object.assign({style:{transform:"translate(".concat(S,"px, ").concat(L,"px)"),width:O,height:T}},Tx,{children:[o.map((e,t)=>{let l=Y===e.id?o.length+1:t+1;switch(e.config.type){case"text":return(0,h.jsx)(Tb,{annotation:e,onDuplicate:c,onDelete:d,onDrag:p,onResize:g,onTextEdit:f,onAttributeUpdate:m,isNew:G(e.id),isInteractive:E,isEditable:n,zIndex:l,inheritedFont:D.body.fontId,seriesColorOptions:w},e.id);case"arrow":return(0,h.jsx)(Ob,{annotation:e,onPointsUpdate:y,onAttributeUpdate:b,onDuplicate:c,onDelete:d,isNew:G(e.id),isInteractive:E,isEditable:n,zoom:r,zIndex:l,seriesColorOptions:w},e.id);case"difference-arrow":return(0,h.jsx)(O1,{annotation:e,zIndex:l,getConnectedDataPointIds:x,onAttributeUpdate:j,onConnect:C,onDelete:d,isNew:G(e.id),isInteractive:E,isEditable:n,zoom:r,plotEffect:i,seriesColorOptions:w},e.id);case"shape":return(0,h.jsx)(Ts,{annotation:e,onDuplicate:c,onDelete:d,onAttributesUpdate:A,isNew:G(e.id),isEditable:n,zIndex:l,seriesColorOptions:w})}}),(0,h.jsx)(MW,{id:Mq(P)}),(0,h.jsx)(MN,{id:M$(P)})]}))})},Tv=e=>(0,h.jsx)(MX,{children:(0,h.jsx)(TC,Object.assign({},e))}),Tj=e=>({id:"annotations",render:()=>(0,h.jsx)(Tv,Object.assign({},e))}),TA=e=>"arrow"===e.config.type||"text"===e.config.type||"difference-arrow"===e.config.type||"shape"===e.config.type,Tw=e=>{let t,{annotation:n,dataPoint:r,formatPieValue:i,formatAlphaValue:o,formatYValue:l,highlightStyle:a}=e,{getLegendSymbolFill:s}=Pf();if("tooltip"===n.config.type&&n.config.caption&&(t=n.config.caption,!S6.safeParse(t).success)){let e=kX(n.config.caption);return(0,h.jsx)(Pg,{items:[{label:e}],shouldTruncate:!0})}return(0,h.jsx)(Pg,{items:[{label:yO(r)?(0,h.jsx)(Pl,{dataPoint:r,formatter:i}):yM(r)?yL(r)?(0,h.jsx)(k6,{dataPoint:r,formatter:o}):(0,h.jsx)(Pt,{dataPoint:r,formatter:l}):null,legendSymbol:(0,h.jsx)(s6,{symbol:r.type,fill:s(r,a),pattern:Pu(r)})}]})},Tk=[{placement:"top",preventOverlap:!0},{placement:"right",preventOverlap:!0},{placement:"left",preventOverlap:!0},{placement:"bottom",preventOverlap:!0},{placement:"top",preventOverlap:!1},{placement:"right",preventOverlap:!1},{placement:"left",preventOverlap:!1},{placement:"bottom",preventOverlap:!1}],TP=[{placement:"right",preventOverlap:!0},{placement:"left",preventOverlap:!0},{placement:"top",preventOverlap:!0},{placement:"bottom",preventOverlap:!0},{placement:"right",preventOverlap:!1},{placement:"left",preventOverlap:!1},{placement:"top",preventOverlap:!1},{placement:"bottom",preventOverlap:!1}],TS=e=>ug(e)&&"highlight"!==e.config.type,TL=e=>{let{placement:t,measuredWidth:n,measuredHeight:r,markerPosition:i}=e;switch(t){case"top":return{x1:i.x-n/2,y1:i.y-9-r,x2:i.x+n/2,y2:i.y-9};case"right":return{x1:i.x+9,y1:i.y-r/2,x2:i.x+9+n,y2:i.y+r/2};case"bottom":return{x1:i.x-n/2,y1:i.y+9,x2:i.x+n/2,y2:i.y+9+r};case"left":return{x1:i.x-9-n,y1:i.y-r/2,x2:i.x-9,y2:i.y+r/2}}},TM=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return e.x1+nt.x1&&e.y1+nt.y1},TO=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return e.x1<-r||e.y1<-r||e.x2>t+r||e.y2>n+r},TT={"clapping-hands":{aspectRatio:"1.059 / 1",src:"data:image/png;base64,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"},"grinning-face":{aspectRatio:"1.03 / 1",src:"data:image/png;base64,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"},rocket:{aspectRatio:"1.046 / 1",src:"data:image/png;base64,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"},"thumbs-down":{aspectRatio:"1.063 / 1",src:"data:image/png;base64,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"},"thumbs-up":{aspectRatio:"1.063 / 1",src:"data:image/png;base64,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"}},TD=p.I4.img(lA(),e=>{let{$isEditable:t}=e;return t?"all":"none"},1),TI=M.memo(function(e){let{x:t,y:n,src:r,alt:i,onClick:o,isEditable:l,isInteractive:a}=e;return(0,h.jsx)(TD,{src:r,alt:i,style:{transform:"translate(-50%, -50%) translate(".concat(t,"px, ").concat(n,"px)")},onClick:o,$isEditable:l&&a})}),Tz=e=>{let{sticker:t}=e,{src:n,aspectRatio:r}=TT[t];return(0,h.jsx)("img",{src:n,style:{aspectRatio:r,width:"100%"},alt:t})},TE=p.I4.div(lw(),2,e=>{let{$isInteractive:t}=e;return t?"all":"none"},4),TH=p.I4.div(lP(),uv("textPrimary"),3,uv("textPrimary"),e=>{let{$isEditable:t}=e;return t?"all":"none"},e=>{let{$isEditable:t}=e;return t?"pointer":"default"},e=>{let{$isEditable:t}=e;return t&&(0,p.AH)(lk())}),TV=e=>{let{x:t,y:n,vizColor:r,onClick:i,isEditable:o,isInteractive:l,vizTooltipProps:a,dataPoint:s,placement:u,highlightStyle:c,onUpdate:d}=e,{overlayState:{closestGeomDataPoint:p}}=yk(),g=(null==p?void 0:p.id)===s.id||(null==a?void 0:a.shouldShowMiniTooltip);return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(TH,{onClick:i,$isEditable:o,style:{transform:"translate(-50%, -50%) translate(".concat(t,"px, ").concat(n,"px)"),backgroundColor:r},children:o&&l&&(0,h.jsx)(xD,{size:"xs"})}),(0,h.jsx)(TE,{$isInteractive:l,style:{transform:TF(u,t,n)},children:(0,h.jsx)(PL,Object.assign({mode:"pinned",dataPoint:s,arrowPlacement:TB(u),highlightStyle:c,isEditable:o,onUpdate:d,shouldShowMiniTooltip:g},a))})]})},TF=(e,t,n)=>{switch(e){case"top":return"translate(-50%, -100%) translate(".concat(t,"px, ").concat(n-9,"px)");case"right":return"translateY(-50%) translate(".concat(t+9,"px, ").concat(n,"px)");case"bottom":return"translateX(-50%) translate(".concat(t,"px, ").concat(n+9,"px)");case"left":return"translate(-100%, -50%) translate(".concat(t-9,"px, ").concat(n,"px)")}},TB=e=>{switch(e){case"top":return"bottom";case"right":return"left";case"bottom":return"top";case"left":return"right"}},TR=e=>{let{annotation:t,placement:n,dataPoint:r,onDelete:i,onUpdate:o,isEditable:l=!0,isInteractive:a=!0,tooltipOptions:s,highlightStyle:u}=e,c=xi(r),d=t.config;switch(d.type){case"sticker":{let e=TT[d.id].src;return(0,h.jsx)(TI,Object.assign({},c,{alt:d.id,src:e,onClick:()=>l&&(null==i?void 0:i(t)),isEditable:l,isInteractive:a}))}case"tooltip":return(0,h.jsx)(TV,Object.assign({dataPoint:r,placement:n,vizColor:r.vizColor,onClick:()=>l&&(null==i?void 0:i(t)),isEditable:l,isInteractive:a,vizTooltipProps:s,highlightStyle:u,onUpdate:e=>null==o?void 0:o(Object.assign(Object.assign({},t),{config:Object.assign(Object.assign({},d),{caption:e})}))},c));case"shape":case"highlight":case"text":case"arrow":case"difference-arrow":return null}},TY=p.I4.div(lS(),mt.pointAnnotations),TG=e=>{var t,n,r,{annotations:i,getDataPointId:o,isEnabled:l=!0,highlightStyle:a,flipAxes:s}=e,u=sJ(e,["annotations","getDataPointId","isEnabled","highlightStyle","flipAxes"]);let{hitboxes:c}=yk(),d=mu("overPlotPortalId"),p=b3("plotOffsetX"),g=b3("plotOffsetY"),f=b3("plotWidth"),m=b3("plotHeight"),y=yG(),b=(0,M.useMemo)(()=>{var e,t,n;return l?(e=>{var{measureReactContent:t,sortedAnnotations:n,plotWidth:r,plotHeight:i,flipAxes:o,highlightStyle:l}=e,a=sJ(e,["measureReactContent","sortedAnnotations","plotWidth","plotHeight","flipAxes","highlightStyle"]);let s=[];for(let e of n){let n=t((0,h.jsx)(Tw,Object.assign({annotation:e.annotation,dataPoint:e.dataPoint,highlightStyle:l},a))),u=!1,c=[...s].reverse(),d=o?TP:Tk;e:for(let{placement:t,preventOverlap:o}of d){let l=TL({placement:t,measuredWidth:n.width,measuredHeight:n.height,markerPosition:e.markerPosition});if(!TO(l,r,i,25)&&o){for(let e of c)if(TM(l,TL({placement:e.placement,measuredWidth:e.measuredWidth,measuredHeight:e.measuredHeight,markerPosition:e.markerPosition}),2))continue e;s.push({annotation:e.annotation,measuredWidth:n.width,measuredHeight:n.height,dataPoint:e.dataPoint,hitbox:e.hitbox,placement:t,markerPosition:e.markerPosition}),u=!0;break}}u||s.push({annotation:e.annotation,measuredWidth:n.width,measuredHeight:n.height,dataPoint:e.dataPoint,hitbox:e.hitbox,placement:"top",markerPosition:e.markerPosition})}return s})({measureReactContent:y,sortedAnnotations:(e=>{let{annotations:t,hitboxes:n,getDataPointId:r}=e,i=n.flatMap(e=>{let{dataPoints:t}=e;return t}).reduce((e,t)=>Object.assign(Object.assign({},e),{[t.id]:t}),{}),o=n.map(e=>e.dataPoints.reduce((t,n)=>Object.assign(Object.assign({},t),{[n.id]:e}),{})).reduce((e,t)=>Object.assign(Object.assign({},e),t),{});return[...t].reduce((e,t)=>{let n=r(t),l=i[n],a=o[n];if(!l||!a)return e;let s=xi(l);return[...e,{annotation:t,dataPoint:l,hitbox:a,markerPosition:s}]},[]).sort((e,t)=>e.markerPosition.x>t.markerPosition.x?1:e.markerPosition.xt.markerPosition.y?1:-1)})({annotations:i.filter(TS),hitboxes:c,getDataPointId:o}),plotWidth:f,plotHeight:m,formatAlphaValue:null==(e=u.tooltipOptions)?void 0:e.formatAlphaValue,formatPieValue:null==(t=u.tooltipOptions)?void 0:t.formatPieValue,formatYValue:null==(n=u.tooltipOptions)?void 0:n.formatYValue,flipAxes:s,highlightStyle:a}):[]},[i,s,o,c,l,y,m,f,a,null==(t=u.tooltipOptions)?void 0:t.formatAlphaValue,null==(n=u.tooltipOptions)?void 0:n.formatPieValue,null==(r=u.tooltipOptions)?void 0:r.formatYValue]),{canUserInteractWithAddon:x}=xp();return l?(0,h.jsx)(my,{container:document.getElementById(d),id:"pointAnnotationsAddon",resetFontSize:!1,children:(0,h.jsx)(TY,{style:{transform:"translate(".concat(p,"px, ").concat(g,"px)"),width:f,height:m},children:b.map(e=>{let{annotation:t,placement:n,dataPoint:r}=e;return(0,h.jsx)(TR,Object.assign({annotation:t,dataPoint:r,placement:n,isInteractive:x("pointAnnotationsAddon"),highlightStyle:a},u),r.id)})})}):null},TU=e=>({id:"pointAnnotations",render:()=>(0,h.jsx)(TG,Object.assign({},e))}),TW=()=>{let e=mu("overPlotPortalId"),t=Mi("labelMaxWidth"),n=Mi("labels");return(0,h.jsx)(my,{container:document.getElementById(e),id:"pieLabelsAddon",zIndex:mt.dataLabels,resetFontSize:!1,children:n.map(e=>{let{x:n,y:r,id:i,formatted:o}=e;return(0,h.jsx)(L8,{maxWidth:t,style:{position:"absolute",transform:"translate(".concat(n,"px, ").concat(r,"px)")},children:o.rich},i)})})},TN=e=>Object.values(e).join("__");function TK(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>!0,r=yk();return(0,M.useMemo)(()=>{var t,i,o,l,a;let s=null!=(i=null==(t=r.overlayState.activeHitbox)?void 0:t.dataPoints)?i:[];switch(e){case"bar":return null!=(o=s.filter(yS).filter(n))?o:[];case"line":return null!=(l=s.filter(yP).filter(n))?l:[];case"tile":return null!=(a=s.filter(yL).filter(n))?a:[]}},[n,null==(t=r.overlayState.activeHitbox)?void 0:t.dataPoints,e])}let TZ=e=>{let{filter:t,highlightStyle:n,lineThickness:r}=e,i=mh(),o=TK("line",t),{isFocusedInteraction:l}=xp(),{isPointHighlighted:a,isLineDimmed:s}=yE();return!o.length||l?null:(0,h.jsx)("g",{style:L_(),children:o.map((e,t)=>{let{xPosition:o,yPosition:l,vizColor:u,groupValues:c,yValue:d,observation:p}=e,g="".concat(o,"-").concat(l,"-").concat(c,"-").concat(u,"-").concat(t);return null===d||a(p)?null:(0,h.jsx)(LZ,{mainPosition:o,crossPosition:l,size:TX(r),fill:i.values.grey100,strokeWidth:2,stroke:bg({theme:i,color:u,isDimmed:s(p),highlightStyle:n}),"aria-label":"Hover Marker"},g)})})},TX=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2.5;return Math.max(3,3*e)},T_=()=>{let{values:e}=mh(),{flipAxes:t}=PD(),n=b3("plotWidth"),r=b3("plotHeight"),[i]=TK("line"),{isFocusedInteraction:o}=xp();if(!i||o)return null;let a=i[t?"yPosition":"xPosition"];return(0,h.jsx)(L2,{ruleStyle:"dashed",orientation:t?l.X:l.Y,origin:0,end:t?n:r,crossOrigin:a,stroke:e.hoverGuideLineColor})},TQ=(0,M.memo)(e=>{let{vizType:t,clipPath:n,observations:r,plotEffect:i,lineThickness:o,lineGenerator:l,areaGenerator:a,showAreas:s,backgroundColor:u,showPoints:c}=e,{getColor:d,getLineType:p}=bX(),{flipAxes:g}=PD(),{isLineDimmed:f}=yE(),[m]=r,y=f(m),b=d(m);return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(LQ,{clipPath:n,observations:r,lineGenerator:l,color:b,isDimmed:y,backgroundColor:u,lineType:p(m),effect:i,role:"graphics-symbol img","aria-roledescription":"line","aria-label":"Line",lineThickness:o,showPoints:c}),s&&(0,h.jsx)(L5,{clipPath:n,isDimmed:y,observations:r,areaGenerator:a,backgroundColor:u,color:b,flipAxes:g,variant:"areaStacked"===t?"solid":"gradient"})]})}),TJ=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"catmull-rom";switch(e){case"linear":return q.A;case"catmull-rom":return $.A}},Tq=(e,t,n)=>{let r=e[t];return null!==e[n]&&void 0!==r},T$=e=>{let{x:t,y:n,getXPosition:r,xBandwidth:i,getYPosition:o,curveType:l,flipAxes:a}=e,s=e=>r(e)+(null!=i?i:0)/2,u=e=>o(e);return(0,ee.A)().x(a?u:s).y(a?s:u).defined(e=>Tq(e,t,n)).curve(TJ(l))},T1=e=>"line-plot-slide-animation-".concat(e),T0=e=>{let{plotId:t}=e,{flipAxes:n}=PD(),r=b3("plotWidth"),i=b3("plotHeight");return(0,h.jsx)("defs",{children:(0,h.jsx)("clipPath",{id:T1(t),children:(0,h.jsx)(ed.P.rect,{x:-20,y:-20,width:r- -40,height:i- -40,initial:{[n?"scaleY":"scaleX"]:0,[n?"originY":"originX"]:0},animate:{[n?"scaleY":"scaleX"]:1},transition:fq})})})},T2=(0,M.memo)(e=>{let{vizType:t,x:n,y:r,group:i=[],curveType:o,plotEffect:l,highlightStyle:a,backgroundColor:s,lineThickness:u,treatEmptyValues:c,showPoints:d}=e,p=(0,M.useId)(),{getXPosition:g,xBandwidth:f,getYPosition:m,getLowerYPosition:y,flipAxes:b}=PD(),{isSeriesHighlighted:x}=yE(),{visibleObservations:C}=L9(),v=(()=>{let e=b3("plotHeight"),t=b3("plotWidth"),{xBandwidth:n,xStep:r,xBandOuterPadding:i}=PD(),o=(0,M.useMemo)(()=>null===n||null===r||null===i?-20:r*i+n/2+-20,[i,n,r]),l="line_clip_".concat((0,M.useId)());return(0,M.useMemo)(()=>({id:l,url:"url(#".concat(l,")"),props:{x:o,y:-20,width:t-2*o,height:e- -40}}),[l,e,t,o])})(),{partitionsMap:j,partitionKeys:A}=(0,M.useMemo)(()=>y_({observations:C,group:i}),[C,i]),w=(0,M.useMemo)(()=>T$({x:n,y:r,getXPosition:g,xBandwidth:f,getYPosition:m,curveType:o,flipAxes:b}),[o,b,g,m,n,f,r]),k=(0,M.useMemo)(()=>(e=>{let{x:t,y:n,getXPosition:r,xBandwidth:i,getYPosition:o,getLowerYPosition:l,curveType:a,flipAxes:s}=e,u=e=>r(e)+(null!=i?i:0)/2,c=e=>o(e),d=e=>l(e);return(s?(0,et.A)().x1(c).x0(d).y(u):(0,et.A)().x(u).y0(d).y1(c)).defined(e=>Tq(e,t,n)).curve(TJ(a))})({x:n,y:r,getXPosition:g,xBandwidth:f,getYPosition:m,getLowerYPosition:y,curveType:o,flipAxes:b}),[n,r,g,f,m,y,o,b]),P=bd({partitionKeys:A,partitionsMap:j,isSeriesHighlighted:x}),S="areaStacked"===t||1===A.length;return(0,h.jsxs)(M.Fragment,{children:[(0,h.jsx)("defs",{children:(0,h.jsx)("clipPath",{id:v.id,children:(0,h.jsx)("rect",Object.assign({},v.props))})}),(0,h.jsx)(T0,{plotId:p}),(0,h.jsx)(T_,{}),(0,h.jsx)(eg.N,{children:(0,h.jsx)("g",{clipPath:"url(#".concat(T1(p),")"),children:P.map(e=>{let n=j.get(e);return!function(e){return!!(e&&e.length>0)}(n)?null:(0,h.jsx)(TQ,{vizType:t,clipPath:v.url,showAreas:S,observations:n,lineGenerator:w,areaGenerator:k,plotEffect:l,backgroundColor:s,lineThickness:u,showPoints:d},e)})})}),(0,h.jsx)(TZ,{highlightStyle:a,lineThickness:u})]},c)}),T5=e=>{let{x:t,y:n,yValue:r,group:i,cluster:o,relatedX:l,getDataPointId:a,curveType:s}=e,{getColor:u,getLineType:c}=bX(),{flipAxes:d,getXPosition:p,xBandwidth:h,getYPosition:g,getSecondaryYPosition:f}=PD(),m=(0,M.useCallback)(e=>{let{observation:y,previousObservation:b,seriesObservations:x,getDataPointXPosition:C,getDataPointYPosition:v,isSecondaryAxis:j}=e,A=y[t],w=y[r],k=l?y[l]:void 0,P=a(y),S=yX({observation:y,group:i}),L=C(y),M=v(y),O=u(y),T=c(y);return{type:"line",id:P,xValue:A,yValue:w,percentage:null,relatedXValue:k,xPosition:d?M:L,yPosition:d?L:M,groupValues:S,clusterValues:y0(o)?y1({observation:y,cluster:o}):null,vizColor:O,lineType:T,observation:y,flipAxes:d,previousDataPoint:b?m({observation:b,getDataPointXPosition:C,getDataPointYPosition:v}):void 0,generateLinePath:()=>T$({x:t,y:n,getXPosition:p,xBandwidth:h,getYPosition:j?f:g,curveType:s,flipAxes:d})(null!=x?x:[])}},[o,s,d,u,a,c,g,f,p,i,l,t,h,n,r]);return m},T3=e=>{let{yOrigin:t,bandwidth:n,filter:r,flipAxes:i}=e,o=mh(),l=b3("plotWidth"),a=b3("plotHeight"),{highlightStyle:s}=yE(),u=TK("bar",r),{innerDimensions:c,outerDimensions:d}=(0,M.useMemo)(()=>T9({plotWidth:l,plotHeight:a,dataPoints:u,yOrigin:t,bandwidth:n,flipAxes:i}),[n,u,i,a,l,t]),p="".concat((0,M.useId)(),"-stroke-mask"),{isFocusedInteraction:g}=xp(),{getLegendSymbolFill:f}=Pf();return!u.length||g?null:(0,h.jsxs)("g",{children:[(0,h.jsx)("defs",{children:(0,h.jsxs)("mask",{id:p,children:[(0,h.jsx)("rect",Object.assign({fill:"white"},d)),(0,h.jsx)("rect",Object.assign({fill:"black"},c))]})}),(0,h.jsx)("rect",Object.assign({},d,{fill:T7({theme:o,dataPoints:u,getLegendSymbolFill:f,highlightStyle:s}),fillOpacity:.15,mask:"url(#".concat(p,")")}))]})},T7=e=>{let{theme:t,dataPoints:n,getLegendSymbolFill:r,highlightStyle:i}=e;return n?[...new Set(n.map(e=>{let{vizColor:t}=e;return t}))].length>1?t.values.stackedBarHoverBorderColor:n[0]?r(n[0],i):t.values.stackedBarHoverBorderColor:t.values.stackedBarHoverBorderColor},T9=e=>{var t,n,r,i,o,l,a,s;let{plotWidth:u,plotHeight:c,dataPoints:d,yOrigin:p,bandwidth:h,flipAxes:g}=e,f=e=>{let{yPosition:t,yValue:n}=e;return null===n?p:t},m=null!=(n=null==(t=(0,j.A)(d,"x0"))?void 0:t.x0)?n:0,y=null!=(i=null==(r=(0,A.A)(d,"x1"))?void 0:r.x1)?i:u,b=null!=(l=null==(o=(0,j.A)(d,f))?void 0:o.y0)?l:0,x=null!=(s=null==(a=(0,A.A)(d,f))?void 0:a.y1)?s:c,C=g?m:b,v=g?b:m,w=bs(h),k={[g?"y":"x"]:v,[g?"x":"y"]:C,[g?"height":"width"]:(g?x:y)-v,[g?"width":"height"]:Math.abs(C-(g?y:x)),rx:w};return{innerDimensions:k,outerDimensions:{x:k.x-6,y:k.y-6,width:k.width+12,height:k.height+12,rx:w+3}}},T4=e=>{let{yBaseline:t,barCount:n,flipAxes:r}=e;return{containerVariants:{hidden:{},show:{transition:{staggerChildren:.4/n}}},itemVariants:{hidden:{[r?"originX":"originY"]:"0%",[r?"scaleX":"scaleY"]:1e-4,[r?"translateX":"translateY"]:t},show:{[r?"scaleX":"scaleY"]:1,[r?"translateX":"translateY"]:0,transition:f$}}}},T6=e=>{let{yBaseline:t,barCount:n,flipAxes:r,children:i}=e,{containerVariants:o}=(0,M.useMemo)(()=>T4({yBaseline:t,barCount:n,flipAxes:r}),[n,r,t]);return(0,h.jsx)(ed.P.g,{variants:o,initial:"hidden",animate:"show",transition:fq,children:i})},T8=e=>{let t=Math.ceil(e.length/10);return(0,P.A)(e,t)},De=e=>{let{yBaseline:t,barCount:n,flipAxes:r,children:i}=e,{itemVariants:o}=(0,M.useMemo)(()=>T4({yBaseline:t,barCount:n,flipAxes:r}),[n,r,t]);return(0,h.jsx)(ed.P.g,{variants:o,children:i})},Dt=e=>{let{observations:t,xBandwidth:n,yOrigin:r,getXPosition:i,getYPosition:o,getColor:l,flipAxes:a}=e,s=(0,M.useMemo)(()=>t.reduce((e,l,s)=>{let u=i(l),c=o(l),d=(e,t)=>a?"".concat(t,",").concat(e):"".concat(e,",").concat(t),p="".concat(d(u,c)," ").concat(d(u+n,c));return 0===s?"".concat(d(u,r)," ").concat(p):s===t.length-1?e+" ".concat(p," ").concat(d(u+n,r)):e+" ".concat(p)},""),[a,i,o,t,n,r]);return t[0]?(0,h.jsx)("polygon",{points:s,fill:l(t[0]),fillOpacity:.2}):null},Dn=(0,M.memo)(e=>{let{x:t,group:n=[],shouldShowDropoff:r,plotEffect:i,backgroundColor:o}=e,l=(0,M.useId)(),{getColor:a,getAlpha:s,getFillType:u}=bX(),{getXPosition:c,xBandwidth:d,getYPosition:p,yOrigin:g,flipAxes:f}=PD(),{visibleObservations:m}=L9(),{isBarDimmed:y}=yE(),{partitionsMap:b,partitionKeys:x}=(0,M.useMemo)(()=>y_({observations:m,group:n}),[n,m]),{getBarGroupXPosition:C,barGroupXBandwidth:j}=(0,M.useMemo)(()=>bW({barGroupKeys:x,xBandwidth:null!=d?d:0}),[x,d]),A=(0,M.useMemo)(()=>x.flatMap(e=>{var t;return null!=(t=b.get(e))?t:[]}),[x,b]),w=(0,M.useMemo)(()=>{let e=x.flatMap((e,n)=>{var r;return(null!=(r=b.get(e))?r:[]).map(r=>{let i=c(r)+C(e),l=p(r),d=a(r),m=u(r),b=s(r),x=y(r);return{itemKey:"".concat(String(r[t]),"-").concat(String(e),"-").concat(n,"}"),xPosition:i,geom:(0,h.jsx)(LG,{flipAxes:f,bandwidth:j,position:i,end:l,start:null!=g?g:0,fill:d,fillType:m,opacity:b,isDimmed:x,backgroundColor:o})}})});return T8((0,v.A)(e,["xPosition"],["asc"]))},[o,j,f,s,C,a,u,c,p,y,x,b,t,g]);return(0,h.jsxs)(h.Fragment,{children:[r&&(0,h.jsx)(Dt,{observations:A,xBandwidth:null!=j?j:0,yOrigin:null!=g?g:0,getXPosition:c,getYPosition:p,getColor:a,flipAxes:f}),"neon"===i&&w.flat().length<=100&&(0,h.jsx)(LW,{shapeId:l,blur:7,opacity:.75}),(0,h.jsx)("g",{id:l,children:(0,h.jsx)(T6,{yBaseline:null!=g?g:0,barCount:w.length,flipAxes:f,children:w.map((e,t)=>(0,h.jsx)(De,{yBaseline:null!=g?g:0,barCount:w.length,flipAxes:f,children:e.map((e,t)=>{let{geom:n,itemKey:r}=e;return(0,h.jsx)(M.Fragment,{children:n},"".concat(r,"-").concat(t))})},t))})}),(0,h.jsx)(T3,{yOrigin:null!=g?g:0,bandwidth:j,flipAxes:f})]})}),Dr=(e,t)=>yb(t)&&["barStacked","columnStacked","barStackedFill","columnStackedFill","mekko"].includes(e),Di=e=>{let{observation:t,group:n}=e;return n[1]?yC(t[n[1].variableKey]):null},Do=e=>{var t;let{zippedStack:n,x:r,yScale:i,group:o}=e,l=n.filter(Boolean),a=(e=>t=>"ticks"in e?e((0,el.A)(t,e=>(null==e?void 0:e.yLowerValue)||0)||0):0)(i)(l),s=(e=>t=>"ticks"in e?e((0,eo.A)(t,e=>(null==e?void 0:e.yUpperValue)||0)||0):0)(i)(l),u=null==(t=l[0])?void 0:t.observation;return{stack:l,stackBottomEdge:a,stackTopEdge:s,stackHeight:a-s,xValue:u[r],groupValues:yX({observation:u,group:o}),firstObservation:u}},Dl=e=>{let{xPosition:t,bandwidth:n,stack:r,y:i,yScale:o,flipAxes:l}=e,{values:a}=mh(),s=(0,eh.K)();if(!("ticks"in o)||r.length>20)return null;let u=(e=>{let{stack:t,y:n}=e;return(0,v.A)(t,["yLowerValue",e=>{let{observation:t}=e,r=t[n];return null===r?0:fl(r)}],["desc","desc"])})({stack:r,y:i});return(0,h.jsx)(h.Fragment,{children:u.map((e,r)=>{var i;let{yLowerValue:c}=e;if(r===u.length-1)return null;let d=o(c),p=null==(i=u[r+1])?void 0:i.yLowerValue;return void 0!==p&&3>Math.abs(d-o(p))?null:(0,h.jsx)(ed.P.line,{initial:!1,animate:{[l?"y1":"x1"]:t,[l?"x1":"y1"]:d,[l?"y2":"x2"]:t+n,[l?"x2":"y2"]:d},transition:s?{duration:0}:fq,strokeWidth:1,stroke:a.grey100},r)})})},Da=(0,M.memo)(e=>{let{vizType:t,x:n,y:r,group:i,secondaryAxisLineKey:o=null,plotEffect:l,backgroundColor:a}=e,s=(0,M.useId)(),u=(0,M.useId)(),{getColor:c,getAlpha:d,getFillType:p}=bX(),{getXPosition:g,xBandwidth:f,yScale:m,yOrigin:y,flipAxes:b}=PD(),{visibleObservations:x}=L9(),{isBarDimmed:C}=yE(),{zippedStackedData:v,barGroupKeys:j}=(0,M.useMemo)(()=>{let e=yU({vizType:t,observations:x,x:n,y:r,group:i,skip:e=>e===o});return Object.assign(Object.assign({},e),{zippedStackedData:yZ(e)})},[x,i,t,o,n,r]),{getBarGroupXPosition:A,barGroupXBandwidth:w}=(0,M.useMemo)(()=>bW({barGroupKeys:j,xBandwidth:null!=f?f:0}),[j,f]),k=(0,M.useMemo)(()=>{if(!("ticks"in m))return[];let e=[];for(let[t,o]of v.entries()){let{stackBottomEdge:l,stackTopEdge:u,firstObservation:f,stack:y}=Do({zippedStack:o,x:n,yScale:m,group:i}),x=Di({observation:f,group:i}),v=A(x),j="".concat(s,"-clip-path-").concat(x,"-").concat(t);e.push({geom:(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("defs",{children:(0,h.jsx)("clipPath",{id:j,children:(0,h.jsx)(LG,{flipAxes:b,bandwidth:w,position:g(f)+v,start:l,end:u,backgroundColor:a})})}),(0,h.jsx)("g",{clipPath:"url(#".concat(j,")"),children:y.map((e,t)=>{if(!e)return null;let{observation:n,yUpperValue:i,yLowerValue:o}=e;if(null===n[r])return null;let l=g(n)+v,s=c(n),u=p(n),f=d(n),y=C(n);return(0,h.jsx)(LG,{flipAxes:b,bandwidth:w,position:l,end:m(i),start:m(o),fill:s,fillType:u,opacity:f,roundCorners:!1,isDimmed:y,backgroundColor:a},t)})}),(0,h.jsx)(Dl,{xPosition:g(f)+v,bandwidth:w,stack:y,y:r,yScale:m,flipAxes:b})]})})}return T8(e)},[a,w,b,d,A,c,p,g,i,C,s,n,r,m,v]);return(0,h.jsxs)(h.Fragment,{children:["neon"===l&&v.flat().length<=100&&(0,h.jsx)(LW,{shapeId:u,blur:7,opacity:.75}),(0,h.jsx)("g",{id:u,children:(0,h.jsx)(T6,{yBaseline:null!=y?y:0,barCount:v.length,flipAxes:b,children:k.map((e,t)=>(0,h.jsx)(De,{yBaseline:null!=y?y:0,barCount:v.length,flipAxes:b,children:e.map((e,n)=>{let{geom:r}=e;return(0,h.jsx)(M.Fragment,{children:r},"".concat(t,"-").concat(n))})},t))})}),(0,h.jsx)(T3,{yOrigin:null!=y?y:0,bandwidth:w,flipAxes:b})]})}),Ds=(0,M.memo)(e=>{var{vizType:t,group:n}=e,r=sJ(e,["vizType","group"]);let{flipAxes:i}=PD();return(0,h.jsxs)(M.Fragment,{children:[(0,h.jsx)(LR,{}),Dr(t,n)?(0,h.jsx)(Da,Object.assign({},r,{vizType:t,group:n})):(0,h.jsx)(Dn,Object.assign({},r,{vizType:t,group:n}))]},String(i))}),Du=e=>{let{data:t,x:n,y:r,group:i,cluster:o,relatedX:l,getDataPointId:a,percentageValueStrategy:s="divide-by-total"}=e,{getColor:u,getAlpha:c,getFillType:d}=bX(),{yScale:p,flipAxes:h}=PD(),g=(0,M.useCallback)(e=>{var f;let{observation:m,previousObservation:y,getDataPointXPosition:b,getDataPointYPosition:x,getX0Position:C,getX1Position:v,getY0Position:j,getY1Position:A,getStackValues:w,stackType:k}=e,P=m[n],S=m[r],L=null!=(f=w(m))?f:t.getValues(r),M="ticks"in p&&ck(t.getType(r))?y8({strategy:s,values:L,absoluteValue:S}):null,O=l?m[l]:void 0,T=a(m),D=yX({observation:m,group:i}),I=b(m),z=x(m),E=u(m),H=d(m),V=c(m),F=y0(o)?y1({observation:m,cluster:o}):null,B=y?g({observation:y,getDataPointXPosition:b,getDataPointYPosition:x,getX0Position:C,getX1Position:v,getY0Position:j,getY1Position:A,getStackValues:w,stackType:k}):void 0,R=C(m),Y=v(m),G=j(m),U=A(m);return Object.assign({type:"bar",stackType:k,id:T,xValue:P,yValue:S,percentage:M,relatedXValue:O,groupValues:D,clusterValues:F,vizColor:E,fillOpacity:V,fillType:H,previousDataPoint:B,flipAxes:h,observation:m},h?{xPosition:z,yPosition:I,x0:U,y0:R,x1:G,y1:Y}:{xPosition:I,yPosition:z,x0:R,y0:G,x1:Y,y1:U})},[n,r,t,p,s,l,a,i,u,d,c,o,h]);return g},Dc=(0,M.memo)(e=>{let{partitionsMap:t,barGroupKeys:n,plotEffect:r,backgroundColor:i}=e,o=(0,M.useId)(),{getColor:l,getAlpha:a,getFillType:s}=bX(),{getXPosition:u,xBandwidth:c,getYPosition:d,yOrigin:p,flipAxes:g}=PD(),{isBarDimmed:f}=yE(),{getBarGroupXPosition:m,barGroupXBandwidth:y}=(0,M.useMemo)(()=>bW({barGroupKeys:n,xBandwidth:null!=c?c:0}),[n,c]),b=(0,M.useMemo)(()=>{let e=n.flatMap(e=>{var n;return(null!=(n=t.get(e))?n:[]).map(t=>{let n=u(t)+m(e),r=d(t),o=l(t),c=s(t),b=a(t),x=f(t);return{itemKey:"".concat(e,"-").concat(n,"-").concat(o,"}"),xPosition:n,geom:(0,h.jsx)(LG,{flipAxes:g,bandwidth:y,position:n,end:r,start:null!=p?p:0,fill:o,fillType:c,opacity:b,isDimmed:x,backgroundColor:i})}})});return T8((0,v.A)(e,["xPosition"],["asc"]))},[n,y,g,a,m,l,s,u,d,f,t,p,i]);return(0,h.jsxs)(h.Fragment,{children:["neon"===r&&b.flat().length<=100&&(0,h.jsx)(LW,{shapeId:o,blur:7,opacity:.75}),(0,h.jsx)("g",{id:o,children:(0,h.jsx)(T6,{yBaseline:null!=p?p:0,barCount:b.length,flipAxes:g,children:b.map((e,t)=>(0,h.jsx)(De,{yBaseline:null!=p?p:0,barCount:b.length,flipAxes:g,children:e.map((e,t)=>{let{geom:n,itemKey:r}=e;return(0,h.jsx)(M.Fragment,{children:n},"".concat(r,"-").concat(t))})},t))})}),(0,h.jsx)(T3,{yOrigin:null!=p?p:0,bandwidth:y,filter:e=>((e,t)=>void 0===e.groupValues[0]||null===e.groupValues[0]||t.includes(yC(e.groupValues[0])))(e,n),flipAxes:g})]})}),Dd=(0,M.memo)(e=>{let{observations:t,yAxisScale:n,plotEffect:r,backgroundColor:i,lineThickness:o,lineGenerator:l,showPoints:a}=e,{getColor:s,getLineType:u}=bX(),{isLineDimmed:c}=yE(),[d]=t,p=c(d),g=s(d);return(0,h.jsx)(LQ,{observations:t,lineGenerator:l,color:g,lineType:u(d),effect:r,lineThickness:o,yAxisScale:n,backgroundColor:i,isDimmed:p,showPoints:a,role:"graphics-symbol img","aria-roledescription":"line","aria-label":"Line"})}),Dp=(0,M.memo)(e=>{let{partitionsMap:t,partitionKeys:n,yAxisScale:r,curveType:i,plotEffect:o,highlightStyle:l,backgroundColor:a,lineThickness:s,showPoints:u,x:c,y:d}=e,p=(0,M.useId)(),{getXPosition:g,xBandwidth:f,getYPosition:m,getSecondaryYPosition:y,flipAxes:b}=PD(),{isSeriesHighlighted:x}=yE(),C="primary"===r?m:y,v=(0,M.useMemo)(()=>T$({x:c,y:d,getXPosition:g,xBandwidth:f,getYPosition:C,curveType:i,flipAxes:b}),[i,b,g,C,c,f,d]),j=bd({partitionKeys:n,partitionsMap:t,isSeriesHighlighted:x});return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(T0,{plotId:p}),"primary"===r&&(0,h.jsx)(T_,{}),(0,h.jsx)("g",{clipPath:"url(#".concat(T1(p),")"),children:j.map(e=>{let n=t.get(e);return!function(e){return!!(e&&e.length>0)}(n)?null:(0,h.jsx)(Dd,{observations:n,yAxisScale:r,plotEffect:o,backgroundColor:a,lineThickness:s,lineGenerator:v,showPoints:u},e)})}),(0,h.jsx)(TZ,{highlightStyle:l,lineThickness:s})]})}),Dh=e=>{let{x:t,y:n,group:r,secondaryAxisLineKey:i,plotEffect:o,backgroundColor:l}=e;return(0,h.jsx)(Da,{vizType:"columnStacked",x:t,y:n,group:r,secondaryAxisLineKey:i,plotEffect:o,backgroundColor:l})},Dg=(0,M.memo)(e=>{let{data:t,curveType:n="catmull-rom",plotEffect:r,x:i,y:o,group:l=[],highlightStyle:a,backgroundColor:s,lineThickness:u,comboPlotAxisCount:c,yAxisProperties:d,showPoints:p}=e,{flipAxes:g}=PD(),{visibleObservations:f}=L9(),m=gG(e=>e.computedConfig.comboPlotType),y=(0,M.useMemo)(()=>y_({observations:[...t],group:l}),[t,l]),b=(0,M.useMemo)(()=>y_({observations:f,group:l}),[f,l]),{primaryGeomKeys:x,secondaryGeomKey:C}=y7({yAxisProperties:d,comboPlotAxisCount:c,comboPlotType:m,partitionKeys:y.partitionKeys}),v=(0,M.useMemo)(()=>C?x.filter(e=>b.partitionKeys.includes(e)):b.partitionKeys,[x,C,b.partitionKeys]),j=d.every(e=>"line"===e.shape);return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(LR,{}),j&&(0,h.jsx)(Dp,{yAxisScale:"primary",curveType:n,plotEffect:r,highlightStyle:a,backgroundColor:s,lineThickness:u,partitionsMap:b.partitionsMap,partitionKeys:x,showPoints:p,x:i,y:o}),!j&&"grouped-bars"===m&&(0,h.jsx)(Dc,{plotEffect:r,partitionsMap:b.partitionsMap,barGroupKeys:v,backgroundColor:s},String(g)),!j&&yb(l)&&"stacked-bars"===m&&(0,h.jsx)(Dh,{plotEffect:r,backgroundColor:s,x:i,y:o,group:l,secondaryAxisLineKey:C},String(g)),null!==C&&(0,h.jsx)(Dp,{yAxisScale:"single"===c?"primary":"secondary",curveType:n,plotEffect:r,highlightStyle:a,backgroundColor:s,lineThickness:u,partitionsMap:b.partitionsMap,partitionKeys:[C],showPoints:p,x:i,y:o})]})}),Df=e=>{let{observations:t,value:n}=e;return(0,M.useMemo)(()=>(0,en.A)().value(e=>{let t=e[n];return null===t?0:fl(t)}).sort(null)(t),[t,n])},Dm=(0,M.memo)(e=>{let{vizType:t,plotEffect:n,value:r,backgroundColor:i}=e,o=(0,M.useId)(),l="translate(".concat(Mi("pieCenterX")," ").concat(Mi("pieCenterY"),")"),{getColor:a,getFillType:s}=bX(),{isHighlighted:u}=yE(),{visibleObservations:c}=L9(),d=Df({observations:c,value:r});return(0,h.jsxs)(M.Fragment,{children:["neon"===n&&d.length<=100&&(0,h.jsx)(LW,{shapeId:o,blur:10,opacity:.75}),(0,h.jsx)("g",{id:o,transform:l,children:d.map((e,n)=>{let r=u(e.data);return(0,h.jsx)(Ma,{arc:e,appearance:t,isDimmed:!1===r,fillColor:a(e.data),fillType:s(e.data),backgroundColor:i},n)})}),(0,h.jsx)(LR,{})]},t)}),Dy={type:"spring",bounce:0,duration:.15},Db={type:"spring",bounce:0,duration:.3},Dx=M.memo(function(e){let{xPosition:t,yPosition:n,width:r,height:i,fill:o,fillOpacity:l,isHovered:a=!1,flipAxes:s}=e,u=DC({xPosition:t,yPosition:n,width:r,height:i,isHovered:a,flipAxes:s});return u.width<0||u.height<0?null:(0,h.jsx)(ed.P.rect,{initial:!1,animate:Object.assign(Object.assign({},u),{fillOpacity:l}),transition:a?Dy:Db,fill:o,rx:8,role:"graphics-symbol img","aria-roledescription":"tile","aria-label":"Tile"})}),DC=e=>{let{xPosition:t,yPosition:n,width:r,height:i,isHovered:o,flipAxes:l}=e,a=.05*(l?r:i),s=.03*(l?i:r),u=.5*a,c=.5*s,d={[l?"y":"x"]:t-r/2+s,[l?"x":"y"]:n-i/2+a,[l?"height":"width"]:r-2*s,[l?"width":"height"]:i-2*a};return o&&(d={x:d.x-c,y:d.y-u,width:d.width+2*c,height:d.height+2*u}),d},Dv=e=>{let{observation:t,alpha:n}=e,{values:r}=mh(),{getColor:i,getAlpha:o}=bX(),{getXPosition:l,xBandwidth:a,getYPosition:s,yBandwidth:u,flipAxes:c}=PD(),d=n&&null!==t[n],p=l(t)+(null!=a?a:0)/2,g=s(t)+(null!=u?u:0)/2,f=null!=a?a:0,m=null!=u?u:0,y=d?i(t):r.heatmapEmptyTileBackground,b=d?o(t):1,[x]=TK("tile"),C=(0,M.useMemo)(()=>void 0!==x&&x.xPosition===p&&x.yPosition===g,[x,p,g]);return(0,h.jsx)(Dx,{fill:y,fillOpacity:b,xPosition:p,yPosition:g,width:f,height:m,isHovered:C,flipAxes:c},JSON.stringify(t))},Dj=(0,M.memo)(e=>{let{data:t,alpha:n,plotEffect:r}=e,i=(0,M.useId)(),{flipAxes:o}=PD(),l=[...t];return(0,h.jsxs)(h.Fragment,{children:["neon"===r&&l.length<=100&&(0,h.jsx)(LW,{shapeId:i,blur:5,opacity:.75}),(0,h.jsx)(ed.P.g,{id:i,initial:{opacity:0},animate:{opacity:1},transition:fq,children:l.map((e,t)=>(0,h.jsx)(M.Fragment,{children:(0,h.jsx)(Dv,{observation:e,alpha:n})},String(t)))},String(o))]})}),DA=(e,t,n)=>{if(![...uJ,...uq].includes(e)||!(null==n?void 0:n.length))return!1;let{partitionKeys:r}=y_({observations:[...t],group:n});return 1===r.length},Dw={top:["bar","barStacked","barStackedFill","column","columnStacked","columnStackedFill","combo","line","areaStacked","pie","mekko","scatter"],right:["line","areaStacked","pie","donut","mekko","columnStacked","columnStackedFill"],none:["pie","donut","scatter","bubble"]},Dk=e=>{let{vizType:t,legendItems:n,isAnyLineHighlighted:r,isAnyStackHighlighted:i,isSingleSeriesBar:o}=e,l=n.length>=3;switch(t){case"waterfall":return"none";case"line":case"areaStacked":return n.length<=1?"none":l||r?"right":"top";case"columnStacked":case"columnStackedFill":return l||i?"right":"top";case"bar":case"barStacked":case"barStackedFill":case"column":return o?"none":"top";case"pie":case"donut":return n.length<=1?"none":"top";default:return"top"}},DP=e=>{let{vizType:t,legendItems:n,isAnyLineHighlighted:r,isSingleSeriesBar:i}=e;if(r)return[];let o=[];return Dw.top.includes(t)&&o.push("top"),Dw.right.includes(t)&&o.push("right"),(Dw.none.includes(t)||1===n.length)&&o.push("none"),["bar","barStacked","barStackedFill","column","columnStacked","columnStackedFill"].includes(t)&&i&&!o.includes("none")&&o.push("none"),o},DS=e=>{var t,n,r;switch(e.vizType){case"line":case"areaStacked":return"line";case"heatmap":case"mekko":return"tile";case"scatter":case"bubble":return"point";case"combo":return null!=(r=null==(n=null==(t=e.yAxisProperties)?void 0:t[e.index])?void 0:n.shape)?r:"bar";case"pie":case"donut":return e.vizType;default:return"bar"}},DL=()=>{let e=gG(e=>e.computedConfig),t=(0,M.useMemo)(()=>hE(e)?e.yAxisProperties:[],[e]),n=e.type;return(0,M.useCallback)(e=>DS({vizType:n,index:e,yAxisProperties:t}),[n,t])},DM=e=>{let{vizType:t,data:n,group:r,yAxisProperties:i,formatSeriesLabel:o}=e,{partitionKeys:l}=y_({observations:[...n],group:r});return l.map((e,n)=>({seriesKey:e,formattedLabel:o(yj(e),e).plain,symbol:DS("combo"===t?{vizType:t,index:n,yAxisProperties:i}:{vizType:t,index:n})}))},DO=e=>{let{vizType:t,data:n,group:r,formatSeriesLabel:i}=e,{partitionKeys:o}=y_({observations:[...n],group:r});return o.map((e,n)=>({seriesKey:e,formattedLabel:i(yj(e),e).plain,symbol:DS({vizType:t,index:n})}))},DT=(0,M.createContext)(null),DD=uD(DT,"LegendProvider"),DI=e=>{let{data:t,group:n,label:r,formatSeriesLabel:i,customLegendPosition:o,children:l}=e,{_setLegendItems:a,_setDefaultLegendPosition:s,_setAvailableLegendPositions:u}=PE(),{isAnyLineHighlighted:c,isAnyStackHighlighted:d}=yE(),p=gG(e=>e.computedConfig),g=(0,M.useMemo)(()=>DA(p.type,t,n),[p.type,t,n]),f=[...uJ,...uq,"line","areaStacked","combo"].includes(p.type)?p:void 0,m=(e=>{let{vizType:t,data:n,group:r,label:i,formatSeriesLabel:o=up,xAxisProperties:l,yAxisProperties:a}=e;return(0,M.useMemo)(()=>{let e=null!=r?r:[];return"funnel"===t?DM({vizType:t,data:n,group:e,formatSeriesLabel:o}):[...uJ,...uq].includes(t)?(e=>{var t,n;let{vizType:r,data:i,group:o,formatSeriesLabel:l,xAxisProperties:a}=e,s=null==(n=null==(t=null==a?void 0:a[0])?void 0:t.dataType)?void 0:n.type;return s&&(cA(s)||ck(s))?DO({vizType:r,data:i,group:o,formatSeriesLabel:l}):DA(r,i,o)?(e=>{var t;let{vizType:n,data:r,formatSeriesLabel:i,xAxisProperties:o}=e,l=null==(t=null==o?void 0:o[0])?void 0:t.key;if(!l)return[];let a=new Set;for(let e of r){let t=e[l];t&&pM(t)&&("string"==typeof t||"number"==typeof t||"boolean"==typeof t)&&a.add(t)}return[...a].map((e,t)=>({seriesKey:yC(e),formattedLabel:i(String(e),yC(e)).plain,symbol:DS({vizType:n,index:t})}))})({vizType:r,data:i,formatSeriesLabel:l,xAxisProperties:a}):DO({vizType:r,data:i,group:o,formatSeriesLabel:l})})({vizType:t,data:n,group:e,formatSeriesLabel:o,xAxisProperties:l}):["line","areaStacked","scatter","mekko","bubble","combo"].includes(t)?DM({vizType:t,data:n,group:e,formatSeriesLabel:o,yAxisProperties:a}):u1.includes(t)?(e=>{let{vizType:t,data:n,label:r,formatSeriesLabel:i}=e;return r?[...n].map(e=>e[r]).filter(e=>null!==e).map(fo).map(e=>({seriesKey:null,formattedLabel:i(e,yC(e)).plain})).map((e,n)=>Object.assign(Object.assign({},e),{symbol:DS({vizType:t,index:n})})):[]})({vizType:t,data:n,label:i,formatSeriesLabel:o}):[]},[t,n,r,i,o,l,a])})({vizType:p.type,label:r,formatSeriesLabel:i,xAxisProperties:null==f?void 0:f.xAxisProperties,yAxisProperties:null==f?void 0:f.yAxisProperties,data:t,group:n}),y=(0,M.useMemo)(()=>(e=>{let{vizType:t,customLegendPosition:n,legendItems:r,isAnyLineHighlighted:i,isAnyStackHighlighted:o,isSingleSeriesBar:l}=e,a=DP({vizType:t,legendItems:r,isAnyLineHighlighted:i,isSingleSeriesBar:l});return n&&a.includes(n)?n:Dk({vizType:t,legendItems:r,isAnyLineHighlighted:i,isAnyStackHighlighted:o,isSingleSeriesBar:l})})({vizType:p.type,customLegendPosition:o,legendItems:m,isAnyLineHighlighted:c,isAnyStackHighlighted:d,isSingleSeriesBar:g}),[p.type,o,m,c,d,g]);(0,M.useEffect)(()=>{a(m)},[a,m]),(0,M.useEffect)(()=>{s(Dk({vizType:p.type,legendItems:m,isAnyLineHighlighted:c,isAnyStackHighlighted:d,isSingleSeriesBar:g}))},[s,p.type,c,d,m,g]),(0,M.useEffect)(()=>{u(DP({vizType:p.type,legendItems:m,isAnyLineHighlighted:c,isSingleSeriesBar:g}))},[p.type,c,m,u,g]);let b=(0,M.useMemo)(()=>({legendPosition:y}),[y]);return(0,h.jsx)(DT.Provider,{value:b,children:l})},Dz=e=>{let{y:t,series:n,getYPosition:r}=e;if(!t)return null;for(let e of[...n].reverse())if(null!==e[t])return r(e);return null},DE=(0,M.createContext)(null),DH=uD(DE,"SeriesLabelsProvider"),DV=e=>{let{data:t,x:n,y:r,group:i,formatLabel:o,children:l}=e,a=gG(e=>e.computedConfig.type),{legendPosition:s}=DD(),{getColor:u}=bX(),{yScale:c,getYPosition:d,yStackScale:p}=PD(),{isSeriesHighlighted:g,isLineDimmed:f,isGroupHighlighted:m,isAnyLineHighlighted:y}=yE(),b=(0,M.useMemo)(()=>({seriesLabels:(e=>{let{vizType:t,data:n,x:r,y:i,yScale:o,yStackScale:l,group:a,formatLabel:s=up,isLineHighlighted:u,isLineDimmed:c,isAnyLineHighlighted:d,isGroupHighlighted:p,getYPosition:h,getColor:g,legendPosition:f}=e;return["line","areaStacked"].includes(t)&&"right"===f?(e=>{let{data:t,y:n,group:r,formatLabel:i=up,isLineHighlighted:o,isLineDimmed:l,getYPosition:a,getColor:s,isAnyLineHighlighted:u}=e,c=[],{partitionKeys:d,partitionsMap:p}=y_({observations:[...t],group:r});for(let{series:e,seriesKey:t}of d.reduce((e,t)=>{let n=p.get(t);if(!n||0===n.length)return e;let r=n[0];return r&&(o(r)||d.length<=10||!u)&&e.push({series:n,seriesKey:t}),e},[])){let r=e.at(-1),o=Dz({y:n,series:e,getYPosition:a});r&&null!==o&&c.push({seriesKey:t,position:o,label:i(yj(t),t),color:s(r),isDimmed:l(r)})}return c})({data:n,y:i,group:a,formatLabel:s,isLineHighlighted:u,isLineDimmed:c,getYPosition:h,getColor:g,isAnyLineHighlighted:d}):["mekko","barStacked","columnStacked","barStackedFill","columnStackedFill"].includes(t)&&"right"===f?(e=>{let{vizType:t,data:n,x:r,y:i,yScale:o,group:l,formatLabel:a=up,getColor:s,isGroupHighlighted:u}=e;if(!(r&&i&&yb(l)&&"ticks"in o))return[];let c=[],{stackedData:d}=yU({vizType:t,observations:[...n],x:r,y:i,group:l});for(let e of d)for(let t of[...e].reverse()){if(!t)continue;let{seriesKey:e,yLowerValue:n,yUpperValue:r,observation:i}=t;if(n===r)continue;let l=o((n+r)/2);c.push({seriesKey:e,position:l,label:a(yj(e),e),color:s(i),isDimmed:!1===u(i)});break}return c})({vizType:t,data:n,x:r,y:i,yScale:"mekko"===t?l:o,group:a,formatLabel:s,getColor:g,isGroupHighlighted:p}):[]})({vizType:a,data:t,x:n,y:r,yScale:c,yStackScale:p,group:i,formatLabel:o,isLineHighlighted:g,isLineDimmed:f,isGroupHighlighted:m,getYPosition:d,getColor:u,legendPosition:s,isAnyLineHighlighted:y})}),[a,t,n,r,c,p,i,o,g,f,m,d,u,s,y]);return(0,h.jsx)(DE.Provider,{value:b,children:l})},DF=e=>{let{labelPosition:t,plotEdgePosition:n,color:r}=e,i=mu("isPlotMeasured"),o=DB(-4,n-t,9,0),l=y2(o,fq),a={fill:"none",stroke:r,strokeWidth:1,strokeDasharray:"2 2"};return i?(0,h.jsx)(ed.P.path,Object.assign({d:l},a)):(0,h.jsx)("path",Object.assign({d:o},a,{strokeOpacity:0}))},DB=(e,t,n,r)=>"M ".concat(e,",").concat(t," C ").concat((e+n)/2,",").concat(t," ").concat((e+n)/2,",").concat(r," ").concat(n,",").concat(r),DR=p.I4.text(lL(),sd),DY=()=>{let e=mu("isPlotMeasured"),t=mu("chartWidth"),n=b3("plotHeight"),r=mu("textScale"),{seriesLabels:i}=DH(),{repelledLabels:o,hasOverlappingLabels:l}=(0,M.useMemo)(()=>(e=>{let{seriesLabels:t,plotHeight:n,textScale:r}=e,i=[...t].sort((e,t)=>e.position-t.position).map(e=>Object.assign(Object.assign({},e),{plotEdgePosition:e.position})),o=!1,l=!0,a=0;for(;l;){l=!1,a++;for(let e=0;eu){l=!0,o=!0;let e=(s-u)/2+1;t.position-=e,a.position+=e,t.position<0&&(t.position=0),a.position>n&&(a.position=n)}}if(a>100)break}return{repelledLabels:i.filter(e=>e.position>=0&&e.position<=n),hasOverlappingLabels:o}})({seriesLabels:i,plotHeight:n,textScale:r}),[i,n,r]),a=mh(),s=yG();return(0,h.jsx)(h.Fragment,{children:o.map(n=>{let{seriesKey:r,position:i,plotEdgePosition:o,label:u,color:c,isDimmed:d}=n,p=d?a.values.dimmedSeriesLabelTextColor:c,g=d?a.values.dimmedSeriesLabelLineColor:c,f=l?(0,h.jsx)(DF,{labelPosition:i,plotEdgePosition:o,color:g}):null,m=bp({measureReactContent:s,text:u.plain,maxWidth:t/4,wrapper:DR}),y=(0,h.jsxs)(DR,{x:11*!!l,y:0,fill:p,textAnchor:"start",dominantBaseline:"middle",opacity:+!!e,children:[(0,h.jsx)("title",{children:u.plain}),m]});return e?(0,h.jsxs)(ed.P.g,{initial:{x:0,y:i,opacity:0},animate:{x:0,y:i,opacity:1},transition:fq,children:[f,y]},r):(0,h.jsxs)(M.Fragment,{children:[f,y]},r)})})},DG=e=>{let{observations:t,backgroundColor:n,highlightStyle:r,pointSize:i}=e,o=mh(),{getColor:l}=bX(),{getYPosition:a,getXPosition:s,xBandwidth:u}=PD(),{isPointDimmed:c}=yE(),[d]=t,p=(0,M.useMemo)(()=>{let e=l(d),t=bg({theme:o,color:e,isDimmed:!1,highlightStyle:r,backgroundColor:n}),i=bg({theme:o,color:e,isDimmed:!0,highlightStyle:r,backgroundColor:n});return{defaultFill:t,defaultStroke:uk(o.values.grey0,t,.6),dimmedFill:i,dimmedStroke:uk(o.values.grey0,i,.6)}},[d,l,o,r,n]),g=u?u/2:0;return(0,h.jsx)("g",{children:t.map((e,t)=>{let r=c(e);return(0,h.jsx)(LZ,{fill:r?p.dimmedFill:p.defaultFill,stroke:r?p.dimmedStroke:p.defaultStroke,crossPosition:a(e),mainPosition:s(e)+g,size:i,backgroundColor:n,includeOuterBorder:!0},t)})})},DU=e=>{let{group:t,plotEffect:n,backgroundColor:r,highlightStyle:i,pointSize:o}=e,l=(0,M.useId)(),a=b3("plotWidth"),s=b3("plotHeight"),{visibleObservations:u}=L9(),{partitionsMap:c,partitionKeys:d}=(0,M.useMemo)(()=>y_({observations:u,group:t}),[u,t]),p="number"==typeof o?o:(e=>{let{plotWidth:t,plotHeight:n,totalPoints:r}=e;return r<=0?2:2*Math.max(1,Math.min(Math.sqrt(t*n*.02/r/Math.PI),4))})({plotWidth:a,plotHeight:s,totalPoints:u.length});return(0,h.jsxs)(h.Fragment,{children:["neon"===n&&(0,h.jsx)(LW,{shapeId:l,blur:5,opacity:.75}),(0,h.jsx)("g",{id:l,children:d.map(e=>{let t=c.get(e)||[];return pI(t)?(0,h.jsx)(DG,{observations:t,backgroundColor:r,highlightStyle:i,pointSize:p},e):null})})]})},DW=e=>{let{observations:t,backgroundColor:n,highlightStyle:r}=e,i=mh(),{getColor:o}=bX(),{getYPosition:l,getXPosition:a,getSize:s,xBandwidth:u}=PD(),{computeBubbleSize:c}=Ms(),{isPointDimmed:d}=yE(),[p]=t,g=(0,M.useMemo)(()=>{let e=o(p),t=bg({theme:i,color:e,isDimmed:!1,highlightStyle:r,backgroundColor:n}),l=bg({theme:i,color:e,isDimmed:!0,highlightStyle:r,backgroundColor:n});return{defaultFill:t,defaultStroke:uk(i.values.grey0,t,.6),dimmedFill:l,dimmedStroke:uk(i.values.grey0,l,.6)}},[p,o,i,r,n]),f=u?u/2:0;return(0,h.jsx)("g",{children:t.map((e,t)=>{let r=d(e),i=s(e);return(0,h.jsx)(LZ,{strokeWidth:1.5,fill:r?g.dimmedFill:g.defaultFill,stroke:r?g.dimmedStroke:g.defaultStroke,size:c(i),opacity:.5,crossPosition:l(e),mainPosition:a(e)+f,backgroundColor:n},t)})})},DN=e=>{let{group:t,plotEffect:n,backgroundColor:r,highlightStyle:i}=e,o=(0,M.useId)(),{visibleObservations:l}=L9(),{partitionsMap:a,partitionKeys:s}=(0,M.useMemo)(()=>y_({observations:l,group:t}),[l,t]);return(0,h.jsxs)(h.Fragment,{children:["neon"===n&&(0,h.jsx)(LW,{shapeId:o,blur:5,opacity:.75}),(0,h.jsx)("g",{id:o,children:s.map(e=>{let t=a.get(e)||[];return pI(t)?(0,h.jsx)(DW,{observations:t,backgroundColor:r,highlightStyle:i},e):null})})]})},DK=(0,M.memo)(e=>{let{x:t,plotEffect:n,backgroundColor:r}=e,i=(0,M.useId)(),{values:o}=mh(),{getColor:a,getFillType:s}=bX(),{getXPosition:u,xBandwidth:c,yOrigin:d,getYStartPosition:p,getYEndPosition:g,xStep:f}=PD(),{visibleObservations:m}=L9(),{isBarDimmed:y}=yE(),b=(null!=f?f:0)-(null!=c?c:0),x=(0,M.useMemo)(()=>T8(m.map((e,n)=>{let i=u(e),d=p(e),f=g(e),x=a(e),C=s(e),v=y(e),j="".concat(String(e[t]),"-").concat(n),A=n===m.length-1;return{itemKey:j,geom:(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(LG,{flipAxes:!1,bandwidth:null!=c?c:0,position:i,start:d,end:f,fill:x,fillType:C,isDimmed:v,backgroundColor:r}),!A&&(0,h.jsx)(L2,{ruleStyle:"dashed",orientation:l.X,origin:i+(null!=c?c:0),crossOrigin:f,end:i+(null!=c?c:0)+b,stroke:o.targetLineColor})]})}})),[r,b,a,s,u,g,p,y,m,o.targetLineColor,t,c]);return(0,h.jsxs)(h.Fragment,{children:["neon"===n&&x.flat().length<=100&&(0,h.jsx)(LW,{shapeId:i,blur:7,opacity:.75}),(0,h.jsx)("g",{id:i,children:(0,h.jsx)(T6,{yBaseline:null!=d?d:0,barCount:x.length,children:x.map((e,t)=>(0,h.jsx)(De,{yBaseline:null!=d?d:0,barCount:x.length,children:e.map(e=>{let{geom:t,itemKey:n}=e;return(0,h.jsx)(M.Fragment,{children:t},n)})},t))})}),(0,h.jsx)(T3,{yOrigin:null!=d?d:0,bandwidth:null!=c?c:0}),(0,h.jsx)(LR,{})]})}),DZ=()=>{let{hitboxes:e}=yk(),{isBarDimmed:t}=yE();return(0,h.jsx)(h.Fragment,{children:e.flatMap(e=>e.dataPoints).map(e=>yS(e)&&e.yValue?(0,h.jsx)(LG,{roundCorners:4,flipAxes:e.flipAxes,bandwidth:e.x1-e.x0-4,position:e.x0+2,start:e.y0,end:e.y1-4,fill:e.vizColor,isDimmed:t(e.observation)},e.id):null)})},DX=e=>{let{vizType:t,children:n,addons:r=[],data:i,aestheticMappings:o,getDataPointId:l=TN,percentageValueStrategy:a,curveType:s,options:u}=e,c=gG(e=>e.computedConfig.comboPlotType),d=gG(e=>hE(e.computedConfig)?e.computedConfig.yAxisProperties:[]),p=mu("isPlotMeasured"),{flipAxes:g}=PD(),{x:f,y:m,size:y,yValue:b,group:x,cluster:C,alpha:v,label:j}=o,A={vizType:t,data:i,x:f,y:m,yValue:b,group:x,cluster:C,alpha:v,getDataPointId:l},w=(e=>{let{vizType:t,data:n,x:r,y:i,group:o=[],cluster:l,relatedX:a,getDataPointId:s,percentageValueStrategy:u}=e,{getXPosition:c,xBandwidth:d,yScale:p,getYPosition:h,yOrigin:g}=PD(),{visibleObservations:f}=L9(),m=Dr(t,o),y=Du({data:n,x:r,y:i,group:o,cluster:l,relatedX:a,getDataPointId:s,percentageValueStrategy:u});return(0,M.useCallback)(()=>{let e,n=[],l=()=>null;if(m){let a=yU({vizType:t,observations:f,x:r,y:i,group:o}),s=yZ(a);e=bW({barGroupKeys:a.barGroupKeys,xBandwidth:null!=d?d:0}),n=s.flatMap((e,t)=>e.filter(Boolean).map((e,n)=>{var r,i;let{observation:o,yUpperValue:l,yLowerValue:a}=e;return{observation:ba(o,l,a),previousObservation:null==(i=null==(r=s[t-1])?void 0:r[n])?void 0:i.observation}})),l=br(r,i,o,s)}else{let{partitions:t,partitionKeys:r}=y_({observations:f,group:o});e=bW({barGroupKeys:r,xBandwidth:null!=d?d:0}),n=t.flatMap(e=>e.map((t,n)=>({observation:t,previousObservation:e[n-1]})))}let{getBarGroupXPosition:a,barGroupXBandwidth:s}=e;return n.map(e=>{let{observation:n,previousObservation:r}=e,u=bn(n[i]),d=m?Di({observation:n,group:o}):yQ({observation:n,group:o});return y({observation:n,previousObservation:r,getDataPointXPosition:()=>c(n)+a(d)+s/2,getDataPointYPosition:()=>m&&"ticks"in p?p(n[u?bo:bl]):h(n),getX0Position:()=>c(n)+a(d),getX1Position:()=>c(n)+a(d)+s,getY0Position:()=>"ticks"in p?m?p(n[bo]):u?h(n):null!=g?g:0:0,getY1Position:()=>"ticks"in p?m?p(n[bl]):u?null!=g?g:0:h(n):0,getStackValues:l,stackType:(e=>["barStacked","columnStacked"].includes(e)?"stacked":["barStackedFill","columnStackedFill"].includes(e)?"stacked-fill":"none")(t)})})},[t,m,r,f,i,o,d,y,c,p,h,g])})(Object.assign(Object.assign({},A),{percentageValueStrategy:a})),k=(e=>{let{x:t,y:n,yValue:r,group:i=[],cluster:o,relatedX:l,getDataPointId:a,curveType:s}=e,{getXPosition:u,xBandwidth:c,getYPosition:d}=PD(),{visibleObservations:p}=L9(),h=T5({x:t,y:n,yValue:r,group:i,cluster:o,relatedX:l,getDataPointId:a,curveType:s});return(0,M.useCallback)(()=>{let{partitions:e}=y_({observations:p,group:i});return e.flatMap(e=>e.map((t,n)=>h({observation:t,previousObservation:e[n-1],seriesObservations:e,getDataPointXPosition:()=>u(t)+(null!=c?c:0)/2,getDataPointYPosition:d})))},[p,h,u,d,i,c])})(Object.assign(Object.assign({},A),{curveType:s})),P=(e=>{let{vizType:t,data:n,x:r,y:i,yValue:o,group:l=[],cluster:a,relatedX:s,getDataPointId:u,curveType:c,comboPlotAxisCount:d,yAxisProperties:p}=e,{getXPosition:h,xBandwidth:g,getYPosition:f,getSecondaryYPosition:m,yScale:y,yOrigin:b}=PD(),{visibleObservations:x}=L9(),C=Du({data:n,x:r,y:i,group:l,cluster:a,relatedX:s,getDataPointId:u}),v=T5({x:r,y:i,yValue:o,group:l,cluster:a,relatedX:s,getDataPointId:u,curveType:c});return(0,M.useCallback)(e=>{let{partitionsMap:n,partitionKeys:o}=y_({observations:x,group:l}),{primaryGeomKeys:a,secondaryGeomKey:s}=y7({yAxisProperties:p,comboPlotAxisCount:d,comboPlotType:e,partitionKeys:o}),u="stacked-bars"===e,c=(e,t,r)=>[...n.entries()].flatMap(n=>{let[i,o]=n;return e.includes(i)?o.map((e,n)=>v({observation:e,previousObservation:o[n-1],seriesObservations:o,getDataPointXPosition:()=>h(e)+(null!=g?g:0)/2,getDataPointYPosition:t,isSecondaryAxis:r})):[]}),j=s?c([s],"single"===d?f:m,"single"!==d):[];switch(e){case"grouped-bars":case"stacked-bars":return[...(e=>{let o,a=[],c=()=>null;if(u&&yb(l)){let e=yU({vizType:t,observations:x,x:r,y:i,group:l,skip:e=>e===s}),n=yZ(e);o=bW({barGroupKeys:e.barGroupKeys,xBandwidth:null!=g?g:0}),a=n.flatMap((e,t)=>e.filter(Boolean).map((e,r)=>{var i,o;let{observation:l,yUpperValue:a,yLowerValue:s}=e;return{observation:ba(l,a,s),previousObservation:null==(o=null==(i=n[t-1])?void 0:i[r])?void 0:o.observation}})),c=br(r,i,l,n)}else o=bW({barGroupKeys:e,xBandwidth:null!=g?g:0}),n.forEach((t,n)=>{e.includes(n)&&t.forEach((e,n)=>{a.push({observation:e,previousObservation:t[n-1]})})});let{getBarGroupXPosition:d,barGroupXBandwidth:p}=o;return a.map(e=>{let{observation:t,previousObservation:n}=e,r=bn(t[i]),o=u?Di({observation:t,group:l}):yQ({observation:t,group:l});return C({observation:t,previousObservation:n,getDataPointXPosition:()=>h(t)+d(o)+p/2,getDataPointYPosition:()=>u&&"ticks"in y?y(t[r?bo:bl]):f(t),getX0Position:()=>h(t)+d(o),getX1Position:()=>h(t)+d(o)+p,getY0Position:()=>"ticks"in y?u?y(t[bo]):r?f(t):null!=b?b:0:0,getY1Position:()=>"ticks"in y?u?y(t[bl]):r?null!=b?b:0:f(t):0,getStackValues:c,stackType:u?"stacked":"none"})})})(a),...j];case"lines":return[...c(a,f,!1),...j]}},[t,x,l,d,r,i,g,C,h,y,f,b,v,m,p])})(Object.assign(Object.assign({},A),{curveType:s,comboPlotAxisCount:null==u?void 0:u.comboPlotAxisCount,yAxisProperties:d})),S=(e=>{let{data:t,x:n,y:r,alpha:i,getDataPointId:o,percentageValueStrategy:l="divide-by-max-value"}=e,{getColor:a,getAlpha:s,alphaValues:u}=bX(),{getXPosition:c,xBandwidth:d,getYPosition:p,yBandwidth:h,flipAxes:g}=PD();return(0,M.useCallback)(()=>[...t].map(e=>{let t=o(e),f=e[n],m=e[r],y=c(e)+(null!=d?d:0)/2,b=p(e)+(null!=h?h:0)/2,x=a(e),C=i?e[i]:null,v=s(e),j=y8({strategy:l,values:u,absoluteValue:C}),A=y-(null!=d?d:0)/2,w=b-(null!=h?h:0)/2,k=y+(null!=d?d:0)/2,P=b+(null!=h?h:0)/2;return Object.assign(Object.assign({type:"tile",id:t,xValue:f,yValue:m,vizColor:x,alphaValue:C,fillOpacity:v,percentage:j,flipAxes:g},g?{xPosition:b,yPosition:y,x0:w,y0:A,x1:P,y1:k}:{xPosition:y,yPosition:b,x0:A,y0:w,x1:k,y1:P}),{clusterValues:[],groupValues:[]})}),[i,u,t,g,s,a,o,c,p,l,n,d,r,h])})(Object.assign(Object.assign({},A),{percentageValueStrategy:a})),L=(e=>{let{x:t,yValue:n,label:r,group:i=[],cluster:o,getDataPointId:l}=e,{getColor:a}=bX(),{getXPosition:s,xBandwidth:u,getYPosition:c}=PD(),{visibleObservations:d}=L9(),p=y0(o);return(0,M.useCallback)(()=>{let{partitions:e}=y_({observations:d,group:i}),h=u?u/2:0;return e.flatMap(e=>{let u=[];return e.forEach(e=>{u.push({type:"point",id:l(e),xValue:e[t],yValue:e[n],groupValues:yX({observation:e,group:i}),labelValue:r?e[r]:void 0,clusterValues:p?y1({observation:e,cluster:o}):null,vizColor:a(e),xPosition:s(e)+h,yPosition:c(e),observation:e,flipAxes:!1,percentage:null,partitionDataPoints:u})}),u})},[d,i,u,l,t,n,r,p,o,a,s,c])})(Object.assign(Object.assign({},A),{label:j})),O=(e=>{let{x:t,yValue:n,label:r,group:i=[],cluster:o,getDataPointId:l}=e,{getColor:a}=bX(),{getXPosition:s,xBandwidth:u,getYPosition:c,getSize:d}=PD(),{visibleObservations:p}=L9(),h=y0(o);return(0,M.useCallback)(()=>{let{partitions:e}=y_({observations:p,group:i}),g=u?u/2:0;return e.flatMap(e=>{let u=[];return e.forEach(e=>{u.push({type:"point",id:l(e),xValue:e[t],yValue:e[n],groupValues:yX({observation:e,group:i}),labelValue:r?e[r]:void 0,clusterValues:h?y1({observation:e,cluster:o}):null,vizColor:a(e),xPosition:s(e)+g,yPosition:c(e),sizeValue:d(e),observation:e,flipAxes:!1,percentage:null,partitionDataPoints:u})}),u})},[p,i,u,l,t,n,r,h,o,a,s,c,d])})(Object.assign(Object.assign({},A),{label:j,size:y})),T=(e=>{let{x:t,y:n,getDataPointId:r}=e,{visibleObservations:i}=L9(),o=(e=>{let{x:t,y:n,getDataPointId:r}=e,{getColor:i,getFillType:o,getAlpha:l}=bX(),{getXPosition:a,xBandwidth:s,getYStartPosition:u,getYEndPosition:c}=PD(),d=(0,M.useCallback)(e=>{let{observation:p,previousObservation:h}=e,g=p[t],f=p[n],m=r(p),y=i(p),b=l(p),x=o(p),C=bV in p?p[bV]:void 0,v=h?d({observation:h}):void 0,j=a(p)+(null!=s?s:0)/2,A=u(p),w=c(p);return{type:"bar",stackType:"none",id:m,xValue:null!=g?g:null,yValue:null!=f?f:null,percentage:null,relatedXValue:null,groupValues:[],clusterValues:null,vizColor:y,fillOpacity:b,fillType:x,previousDataPoint:v,flipAxes:!1,observation:p,xPosition:j,yPosition:(A+w)/2,x0:j-(null!=s?s:0)/2,x1:j+(null!=s?s:0)/2,y0:Math.min(A,w),y1:Math.max(A,w),waterfallType:C}},[l,i,r,o,a,c,u,t,s,n]);return d})({x:t,y:n,getDataPointId:r});return(0,M.useCallback)(()=>i.map((e,t)=>o({observation:e,previousObservation:t>0?i[0]:void 0})),[o,i])})(A),D=(e=>{let{aestheticMappings:t,getDataPointId:n}=e,{getColor:r}=bX(),{flipAxes:i,yStackScale:o,xStackScale:l}=PD(),{visibleObservations:a}=L9();return(0,M.useCallback)(()=>{let{x:e,y:s,xStackLower:u,xStackUpper:c,yStackLower:d,yStackUpper:p,yStackPercentage:h,group:g}=t;return u&&c&&d&&p?a.map(t=>{var a,f,m,y,b,x,C,v,j,A,w;let k=null!=(f=l(fl(null!=(a=t[u])?a:0)))?f:0,P=null!=(y=l(fl(null!=(m=t[c])?m:0)))?y:0,S=null!=(x=o(fl(null!=(b=t[d])?b:0)))?x:0,L=null!=(v=o(fl(null!=(C=t[p])?C:0)))?v:0,M=yX({observation:t,group:g});return{id:n(t),type:"bar",isMekko:!0,stackType:"stacked-fill",observation:t,xValue:null!=(j=t[e])?j:"",yValue:null!=(A=t[s])?A:"",xPosition:k,yPosition:S,vizColor:r(t),groupValues:M,clusterValues:null,flipAxes:i,percentage:fl(null!=(w=t[h])?w:0),x0:k,x1:P,y0:S,y1:L}}):[]},[t,i,r,n,a,l,o])})({aestheticMappings:o,getDataPointId:A.getDataPointId}),I=(0,M.useMemo)(()=>{if(!p)return[];switch(t){case"bar":case"barStacked":case"barStackedFill":case"column":case"columnStacked":case"columnStackedFill":case"funnel":return w();case"line":case"areaStacked":return k();case"scatter":return L();case"bubble":return O();case"combo":return P(c);case"heatmap":return S();case"mekko":return D();case"waterfall":return T();default:return[]}},[w,P,S,k,D,L,T,O,p,t,c]);return(0,h.jsx)(xc,{dataPoints:I,addons:r,flipAxes:g,children:n})},D_=e=>{let{hitboxes:t}=e;return null},DQ=p.I4.rect(lM()),DJ=e=>{let{addons:t}=e,n=mu("isPlotMeasured"),r=b3("plotOffsetX"),i=b3("plotOffsetY"),o=b3("plotWidth"),l=b3("plotHeight"),{hitboxes:a,overlayEventHandlers:s,overlayRef:u}=yk(),c="translate(".concat(r," ").concat(i,")");return n&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(DQ,Object.assign({ref:u,role:"widget","aria-label":"Chart interactive overlay",width:o,height:l,transform:c},s)),(0,h.jsxs)("g",{transform:c,children:[t.map(e=>(0,h.jsx)(M.Fragment,{children:e.render()},e.id)),(0,h.jsx)(D_,{hitboxes:a})]})]})},Dq=p.I4.text(lO(),sh,uv("textPrimary")),D$=p.I4.div(lT(),4),D1=p.I4.div(lD(),e=>{let{$inputAlignment:t}=e;return t},e=>{let{$inputAlignment:t}=e;return t},e=>{let{$isActive:t}=e;return+!!t},sR.subtle),D0=p.I4.div(lI(),sh,uv("grey100"),uv("textPrimary"),sz.sm,sE.xs,h_(1),h_(-1)),D2=p.I4.div(lz()),D5=p.I4.span(lE()),D3=p.I4.input(lH()),D7=e=>{var{label:t,onChange:n,setEditorContainer:r,labelReference:i,transformString:o,overlayWidth:l,overlayHeight:a,inputAlignment:s}=e,u=sJ(e,["label","onChange","setEditorContainer","labelReference","transformString","overlayWidth","overlayHeight","inputAlignment"]);let c=(0,Z.s9)(),{draftValue:d,isActive:p,handleOverlayMouseDown:g,handleChange:f,handleKeyPress:m,handleMouseDown:y,focusBindings:b,setInput:x}=(e=>{let{label:t,onChange:n}=e,[r,i]=(0,M.useState)(!1),[o,l]=(0,M.useState)(null),a=(0,M.useCallback)(e=>{o&&!r&&(o.focus(),e.preventDefault())},[o,r]),s=(0,M.useCallback)(e=>{e.stopPropagation()},[]),{draftValue:u,handleChange:c,handleKeyPress:d,focusBindings:p}=gq({value:t,onChange:n,onFocus:()=>i(!0),onBlur:()=>i(!1),onEnterKeyPress:()=>null==o?void 0:o.blur(),changeDebounceWait:0});return{draftValue:u,isActive:r,handleOverlayMouseDown:a,handleChange:c,handleKeyPress:d,handleMouseDown:s,focusBindings:p,setInput:l}})({label:t,onChange:n}),C=(0,M.useMemo)(()=>{var e;return null==(e=null==i?void 0:i.closest("svg"))?void 0:e.parentElement},[i]),v=c("graph.axisLabels.placeholder"),j=d||v||" ";return R.createPortal((0,h.jsx)(D$,{ref:r,style:{transform:o},children:(0,h.jsx)(D1,{"aria-label":"Axis label editor area",style:{width:l,height:a},$isActive:p,$inputAlignment:s,onMouseDown:g,children:(0,h.jsx)(D0,{children:(0,h.jsxs)(D2,{style:{maxWidth:l},children:[(0,h.jsx)(D5,{"aria-hidden":!0,children:j}),(0,h.jsx)(D3,Object.assign({ref:x,type:"text",value:d,onChange:f,onKeyPress:m,onMouseDown:y,placeholder:v},b,u))]})})})}),null!=C?C:document.body)},D9=e=>{let{side:t,label:n,onLabelChange:r}=e,i=(e=>{let t=b3("plotWidth"),n=mu("bottomAxisHeight"),r=mu("rightAxisWidth"),i=mu("textScale");switch(e){case"top":case"bottom":{let r={x:Math.round(t/2),y:"top"===e?-2:n+5};return{label:r,reference:{x:-.5,y:r.y-1,width:t,height:1}}}case"left":case"right":{let t={x:"left"===e?0:r,y:-18.5*i};return{label:t,reference:{x:t.x,y:t.y+10.5*i/2-2,width:1,height:1}}}}})(t),o=(e=>{let t=mu("setTopAxisLabelRef"),n=mu("setRightAxisLabelRef");return{ref:((e,t,n,r,i)=>{switch(e){case"top":return t;case"right":return n;case"bottom":return r;case"left":return i}})(e,t,n,mu("setBottomAxisLabelRef"),mu("setLeftAxisLabelRef")),"aria-label":(e=>{switch(e){case"top":return"Top axis label";case"right":return"Right axis label";case"bottom":return"Bottom axis label";case"left":return"Left axis label"}})(e),textAnchor:(e=>{switch(e){case"top":case"bottom":return"middle";case"right":return"end";case"left":return"start"}})(e),dominantBaseline:(e=>{switch(e){case"top":return"text-after-edge";case"bottom":return"text-before-edge";case"left":case"right":return"hanging"}})(e)}})(t),l=b3("plotWidth"),a=b3("plotHeight"),{truncatedLabel:s,opacity:u}=((e,t,n)=>{let r=(0,Z.s9)(),i=mu("isPlotMeasured"),o=yG(),l=n?r("graph.axisLabels.placeholder"):"";return{truncatedLabel:(0,M.useMemo)(()=>""===e?l:bp({measureReactContent:o,text:e,maxWidth:t,wrapper:Dq}),[e,t,o,l]),opacity:i?""===e?.5:1:0}})(n,"top"===t||"bottom"===t?l:a,void 0!==r),{labelReference:c,setLabelReference:d,setEditorContainer:p,transformString:g}=(e=>{let{x:t,y:n,refs:{setFloating:r,setReference:i,reference:{current:o}}}=(0,eL.we)({placement:(e=>{switch(e){case"top":return"top";case"bottom":return"bottom";case"left":return"right";case"right":return"left"}})(e),whileElementsMounted:(e,t,n)=>(0,eS.ll)(e,t,n,{animationFrame:!0})});return{labelReference:o,setLabelReference:i,setEditorContainer:r,transformString:(0,M.useMemo)(()=>null===t||null===n?"":"translate3d(".concat(Math.round(t),"px, ").concat(Math.round(n),"px, 0)"),[t,n])}})(t),f=(e=>{let t=b3("plotHeight"),n=mu("chartWidth"),{hasSecondaryAxis:r}=PD(),i=mu("textScale");return Object.assign(Object.assign({"aria-label":(e=>{switch(e){case"top":return"Top axis label editor";case"right":return"Right axis label editor";case"bottom":return"Bottom axis label editor";case"left":return"Left axis label editor"}})(e)},((e,t,n,r,i)=>{switch(e){case"top":case"bottom":return{overlayWidth:n,overlayHeight:10.5*i};case"left":case"right":return{overlayWidth:r?t/2:t,overlayHeight:10.5*i}}})(e,n,t,r,i)),{inputAlignment:(e=>{switch(e){case"top":case"bottom":return"center";case"left":return"start";case"right":return"end"}})(e)})})(t),m=mu("textScale"),y=mu("font");return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(Dq,Object.assign({},o,i.label,{opacity:u,children:[(0,h.jsx)("title",{children:n}),s]})),r&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("rect",Object.assign({ref:d,fill:"none"},i.reference)),(0,h.jsx)(D7,Object.assign({},f,{label:n,onChange:r,setEditorContainer:p,labelReference:c,transformString:g}),"".concat(m,"_").concat(y))]})]})},D4=e=>{let{axis:t}=e,{flipAxes:n}=PD();return{getAnimationProps:(0,M.useCallback)(function(e){let r=!(arguments.length>1)||void 0===arguments[1]||arguments[1],i=t===(n?"y":"x")?"x":"y";return{variants:{initial:{[i]:null!=e?e:0,opacity:0},animate:{[i]:null!=e?e:0,opacity:+!!r},exit:{[i]:null!=e?e:0,opacity:0}},initial:"initial",animate:"animate",exit:"exit",transition:fq}},[t,n]),getNonAnimatedProps:(0,M.useCallback)(e=>({transform:t===(n?"y":"x")?"translate(".concat(e,", 0)"):"translate(0, ".concat(e,")"),opacity:0}),[t,n])}},D6=e=>{let{getAxisPosition:t,tickValues:n,axis:r,axisSide:i}=e,{values:o}=mh(),a=b3("plotHeight"),s=b3("plotWidth"),u=gG(e=>e.computedConfig.type),c=mu("isPlotMeasured"),{origin:d,ruleEnd:p,orientation:g}=(e=>{let t=b3("plotWidth"),n=b3("plotHeight"),r=b3("plotOffsetX"),i=mu("topAxisHeight");switch(e){case"top":return{origin:i,ruleEnd:i+n,orientation:l.Y};case"right":return{origin:-6,ruleEnd:-t-6,orientation:l.X};case"bottom":return{origin:-0,ruleEnd:-n-0,orientation:l.Y};case"left":return{origin:r,ruleEnd:r+t,orientation:l.X}}})(i),{getAnimationProps:f}=D4({axis:r});return c&&"combo"!==u?(0,h.jsx)("g",{children:(0,h.jsx)(eg.N,{custom:t,children:n.map(e=>{let n=t(e),r=D8(e,n,i,s,a);return(0,h.jsx)(ed.P.g,Object.assign({},f(null!=n?n:0,r),{children:(0,h.jsx)(L2,{ruleStyle:"gridLine",orientation:g,origin:d,crossOrigin:0,end:p,stroke:o.gridLineColor})}),String(e))})})}):null},D8=(e,t,n,r,i)=>{try{if(0===fl(e))return!1}catch(e){}return null!==e&&0!==t&&t!==("top"===n||"bottom"===n?r:i)},Ie=e=>{let t,{side:n,children:r}=e,i=mu("setTopAxisRef"),o=mu("setRightAxisRef"),l=mu("setBottomAxisRef"),a=mu("setLeftAxisRef");switch(n){case"bottom":t=l;break;case"top":t=i;break;case"left":t=a;break;case"right":t=o}return(0,h.jsx)("g",{ref:t,"aria-label":"AxisContainer ".concat(n),children:null!=r?r:(0,h.jsx)(It,{})})},It=()=>(0,h.jsx)("rect",{width:1,height:1,fill:"none"}),In=e=>{let{sides:t}=e;return t.map(e=>(0,h.jsx)(Ie,{side:e},e))},Ir=p.I4.text(lV(),sp,uv("textSecondary")),Ii=e=>{let{label:t,measureReactContent:n,axisSide:r}=e,i=n((0,h.jsx)(Ir,{children:t.rich}));return"left"===r||"right"===r?i.height:i.width},Io=e=>{let{labelSize:t,labelPosition:n,getAxisPosition:r,value:i}=e,o=r(i);return null===o?null:{start:o-=t/2,end:o+t}},Il=e=>{let{tryValues:t,formatLabel:n,axisSize:r,measureReactContent:i,getAxisPosition:o,axisSide:l,iterationCount:a=0}=e,s=t(a);if(!s)return Il(Object.assign(Object.assign({},e),{iterationCount:a+1}));if(!s.length||a>50)return[];let u=[],c=r+20,d=s.map(yj),p=-1/0;for(let t=0;tc||g.start<-20)){if(g.start1&&void 0!==arguments[1]?arguments[1]:2,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ct.Enum.auto,r="ticks"in e&&t>2?e.ticks(t):e.domain(),i=n===ct.Enum.auto,o=r.length<=2;return i||o?r:e.domain()},Iu=[{cadence:"hourly",step:3},{cadence:"hourly",step:6},{cadence:"hourly",step:12},{cadence:"daily",step:1},{cadence:"daily",step:2},{cadence:"weekly",step:1},{cadence:"weekly",step:2},{cadence:"monthly",step:1},{cadence:"monthly",step:2},{cadence:"monthly",step:3},{cadence:"monthly",step:6},{cadence:"yearly",step:1},{cadence:"yearly",step:2},{cadence:"yearly",step:5},{cadence:"yearly",step:10},{cadence:"yearly",step:20},{cadence:"yearly",step:50},{cadence:"yearly",step:100},{cadence:"yearly",step:1e3}];class Ic extends Error{}let Id=(e,t)=>t===ct.Enum.edges?[e[0],e[e.length-1]]:e,Ip=e=>{var t,n;let{measureReactContent:r,flipAxes:i,testDates:o,plottedDates:l,getAxisPosition:a,formatLabel:s,plotMainSize:u,leftAxisWidth:c,rightAxisWidth:d,cadence:p,dataTypeCadence:g,vizType:f}=e,m=[],y=null,b=null;for(let[e,l]of o.entries()){let o=yj(l),x=Ix(o,f,null!=p?p:g),C=a(x);if(null===C)continue;let v=s(o,[],e,p),{width:j}=r((0,h.jsx)(Ir,{children:v.rich})),A=Io({labelSize:j,getAxisPosition:a,value:x,labelPosition:"center"});if(!Ib({flipAxes:i,axisPosition:C,tickLabelWidth:j,plotMainSize:u,leftAxisWidth:c,rightAxisWidth:d})){if(m.push({value:o,formatted:v,startPosition:null!=(t=null==A?void 0:A.start)?t:0,endPosition:null!=(n=null==A?void 0:A.end)?n:0}),If({axisPosition:C,prevAxisPosition:y,tickLabelWidth:j,prevTickLabelWidth:b}))throw new Ic;y=C,b=j}}if(p&&!Im(o,l))throw new Ic;return m},Ih=(e,t)=>{var n;let r=e.domain(),i=r[0],o=r[r.length-1],{cadence:l,step:a}=t;if(Ig({cadence:l,step:a,start:i,stop:o}))return[];let s="quarterly"===l?3*a:a,u=(e=>{switch(e){case"hourly":return e8.A;case"daily":return te.A;case"weekly":return tt.rt;case"monthly":case"quarterly":return tn.A;case"yearly":return tr.A}})(l),c=u.range(i,o,s);if(0===c.length)return[];let d=null==(n=u.every(s))?void 0:n.floor(o);return d&&o.valueOf()===d.valueOf()?[...c,o]:c},Ig=e=>{let{cadence:t,step:n,start:r,stop:i}=e,o=(0,T.c)(i,r);switch(t){case"hourly":return 24*o/n>40;case"daily":return o/n>40;case"weekly":return o/(7*n)>40;case"monthly":return o/(30*n)>40;case"quarterly":return o/(90*n)>40;case"yearly":return o/(365*n)>40}},If=e=>{let{axisPosition:t,prevAxisPosition:n,tickLabelWidth:r,prevTickLabelWidth:i}=e;return null!==n&&null!==i&&t-r/2-(n+i/2)<10},Im=(e,t)=>{let n=0;for(let[r,i]of e.entries()){let o=yj(i);if(null===o)continue;let l=e[r+1]?yj(e[r+1]):void 0;for(let e of t)Iy(yj(e),o,l)&&n++}return e.length>0&&n/e.length>=2},Iy=(e,t,n)=>{if(null===e)return!1;let r=fa(e).getTime(),i=fa(t).getTime(),o=void 0!==n&&pM(n)?fa(n).getTime():1/0;return r>=i&&r<=o},Ib=e=>{let{flipAxes:t,axisPosition:n,tickLabelWidth:r,plotMainSize:i,leftAxisWidth:o,rightAxisWidth:l}=e,a=Math.max(o,12),s=Math.max(l,12);return!t&&(n-r/2<-a-20||n+r/2>i+s+20)},Ix=(e,t,n)=>{if(!uJ.includes(t)||!n||!["monthly"].includes(n.cadence)||null===e)return e;let r=fa(e),i=r.getMonth();return r.setMonth(0),r.setDate(1),r.setDate(30.4375*i),r},IC=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:up,n=mu("waterfallTotalLabel");return(0,M.useMemo)(()=>"waterfall"===e?(e,r,i)=>i===r.length-1?{plain:n,rich:n}:t(e,r,i):t,[e,t,n])},Iv=e=>{let{xPosition:t,yPosition:n,formattedTickValue:r,textAnchor:i,dominantBaseline:o,isRotated:l,numTicks:a}=e,{xStep:s,isTimeseriesBarAxis:u,flipAxes:c}=PD(),d=mu("chartWidth"),p=mu("chartHeight"),g=b3("plotWidth"),f=yG(),m=(0,M.useMemo)(()=>l?bp({measureReactContent:f,text:r.plain,maxWidth:.3*p,wrapper:Ir}):null===s||u?r.plain:bp({measureReactContent:f,text:r.plain,maxWidth:c?.3*d:g/a-5,wrapper:Ir}),[p,d,c,r.plain,l,u,f,a,g,s]),y=(0,h.jsxs)(Ir,{x:t,y:n,textAnchor:i,dominantBaseline:o,children:[(0,h.jsx)("title",Object.assign({},l?{"data-testid":"rotated"}:{},{children:r.plain})),m]});return l?(0,h.jsx)("g",{style:{transformOrigin:"".concat(t,"px ").concat(n,"px"),transform:"rotate(-90deg)"},children:y}):y},Ij=e=>{let{tick:t,isRotated:n,side:r,numTicks:i}=e,{values:o}=mh(),{xPosition:a,yPosition:s,lineOrigin:u,lineEnd:c,textAnchor:d,dominantBaseline:p}=(e=>{let{side:t,isRotated:n}=e,r=b3("plotOffsetX"),i=b3("plotOffsetY"),[o,l]=(e=>{let{textScale:t,side:n,plotOffsetX:r,plotOffsetY:i}=e;switch(n){case"top":return[0,i-9-2-13.5*t];case"right":return[9,0];case"bottom":return[0,11];case"left":return[r-9-2-6,0]}})({textScale:mu("textScale"),side:t,plotOffsetX:r,plotOffsetY:i}),[a,s]=(e=>{let t,{side:n,plotOffsetX:r,plotOffsetY:i}=e;switch(n){case"top":t=i-9-11-5;break;case"right":case"bottom":t=0;break;case"left":t=r-9-6}return[t,t+9]})({side:t,plotOffsetX:r,plotOffsetY:i});return{xPosition:o,yPosition:l,lineOrigin:a,lineEnd:s,textAnchor:((e,t)=>"left"===e?"end":"right"===e||"top"===e&&t?"start":t?"end":"start")(t,n),dominantBaseline:"top"===t?"alphabetic":"text-before-edge"}})({side:r,isRotated:n});return null===t.startPosition||void 0===t.startPosition||null===t.endPosition||void 0===t.endPosition?null:(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(L2,{ruleStyle:"tickLine",orientation:"top"===r||"bottom"===r?l.Y:l.X,origin:u,end:c,crossOrigin:(t.endPosition-t.startPosition)/2,stroke:o.gridLineColor}),(0,h.jsx)(Iv,{xPosition:a,yPosition:s,formattedTickValue:t.formatted,textAnchor:d,dominantBaseline:p,isRotated:n,numTicks:i})]})},IA=e=>{let{side:t,ticks:n,shouldRotate:r,shouldHideTicks:i}=e,o=mu("isPlotMeasured"),{getXAxisPosition:l,getTimeseriesBarAxisPosition:a,isTimeseriesBarAxis:s}=PD(),{getAnimationProps:u,getNonAnimatedProps:c}=D4({axis:"x"}),d=(null!=n?n:[]).filter(e=>{if(null==e)return!1;let{startPosition:t,endPosition:n}=e;return Number.isFinite(t)&&Number.isFinite(n)});return i||0===d.length?(0,h.jsx)(Ie,{side:t}):(0,h.jsx)(Ie,{side:t,children:o?(0,h.jsx)(eg.N,{custom:s?a:l,children:d.map((e,n)=>{var i,o;return(0,h.jsx)(ed.P.g,Object.assign({},u(null!=(i=e.startPosition)?i:0),{children:(0,h.jsx)(Ij,{tick:e,isRotated:r,side:t,numTicks:d.length})}),String(null!=(o=e.value)?o:n))})}):d.map((e,n)=>{var i,o;return(0,h.jsx)("g",Object.assign({},c(null!=(i=e.startPosition)?i:0),{children:(0,h.jsx)(Ij,{tick:e,isRotated:r,side:t,numTicks:d.length})}),String(null!=(o=e.value)?o:n))})})},Iw=e=>{let{vizType:t,comboPlotType:n,label:r,onLabelChange:i,formatLabel:o=up,side:l="bottom"}=e,{getXAxisPosition:s,getTimeseriesBarAxisPosition:u,isTimeseriesBarAxis:c,xType:d,options:p}=PD(),g=c?u:s,{ticks:f,shouldRotate:m,shouldHideTicks:y}=(e=>{let{formatLabel:t,options:n,getAxisPosition:r,axisSide:i}=e,o=yG(),{isTimeseriesBarAxis:l,flipAxes:s,xType:u,xScale:c,xStep:d}=PD(),p=gG(e=>e.computedConfig.xAxisLabelsMode),h=gG(e=>e.computedConfig.type),g=gG(e=>e.computedConfig.comboPlotType),f=b3("plotWidth"),m=b3("plotHeight"),y=s?m:f,b=IC(h,t),x=(e=>{let{formatLabel:t,getAxisPosition:n,measureReactContent:r,xType:i}=e,{xScale:o,xValues:l,timeseriesBarScale:a,flipAxes:s}=PD(),u=mu("leftAxisWidth"),c=mu("rightAxisWidth"),d=(e=>{switch(e){case gP.Year:return{cadence:"yearly",step:1};case gP.Quarter:return{cadence:"quarterly",step:1};case gP.MonthYear:case gP.Month:return{cadence:"monthly",step:1};case gP.WeeklyDateRange:case gP.WeeklyDateRangeWithYear:return{cadence:"weekly",step:1};default:return}})(i),p=gG(e=>e.computedConfig.type);return(0,M.useCallback)(e=>{let{plotMainSize:i,labelsMode:h}=e;try{return Ip({measureReactContent:r,flipAxes:s,testDates:Id(((e,t)=>"ticks"in e?[...new Set(t.filter(pM))]:e.domain().map(yj).filter(pM).map(yC))(o,l),h),plottedDates:l,getAxisPosition:n,formatLabel:t,plotMainSize:i,leftAxisWidth:u,rightAxisWidth:c,dataTypeCadence:d,vizType:p})}catch(e){if(!(e instanceof Ic))throw e}for(let e of Iu)try{return Ip({measureReactContent:r,flipAxes:s,testDates:Id(Ih(a,e),h),plottedDates:l,getAxisPosition:n,formatLabel:t,plotMainSize:i,leftAxisWidth:u,rightAxisWidth:c,cadence:e,vizType:p})}catch(e){if(e instanceof Ic)continue}return[]},[d,s,t,n,u,r,c,a,o,l,p])})({formatLabel:b,getAxisPosition:r,measureReactContent:o,xType:u}),C=(e=>{let{formatLabel:t,getAxisPosition:n,measureReactContent:r}=e,{xValues:i}=PD();return(0,M.useCallback)(e=>{let{plotMainSize:o,labelsMode:l,axisSide:a}=e,s=Il({formatLabel:t,tryValues:((e,t)=>n=>{let r=Math.floor(t/10),i=Math.ceil(e.length/r);return((e,t)=>{let n=[],r=Math.ceil(e.length/t);for(let i=0;i{let{formatLabel:t,getAxisPosition:n,measureReactContent:r}=e,{xScale:i}=PD();return(0,M.useCallback)(e=>{let{plotMainSize:o,labelsMode:l,axisSide:a}=e,s=Il({formatLabel:t,tryValues:((e,t)=>n=>{var r,i;let o=null!=(r=e[0])?r:1/0,l=null!=(i=e.at(-1))?i:-1/0,a=Ia[n];a||(a=Math.pow(10,4+n-Ia.length));let{start:s,count:u}=((e,t,n)=>{let r=Math.floor(e/n)*n,i=Math.ceil(t/n)*n;return{start:r,end:i,count:Math.floor((i-r)/n)}})(o,l,a);return u>t/10?null:Array.from({length:u+1},(e,t)=>s+t*(null!=a?a:0))})(i.domain().map(yj),o),getAxisPosition:n,measureReactContent:r,axisSize:o,axisSide:a});return l===ct.Enum.edges?[s[0],s[s.length-1]]:s},[t,n,i,r])})({formatLabel:b,getAxisPosition:r,measureReactContent:o}),j=(e=>{let{formatLabel:t,measureReactContent:n}=e,{hitboxes:r}=yk(),{xValues:i}=PD();return(0,M.useCallback)(e=>{let{axisSide:o}=e,l=[];return r.forEach((e,r)=>{let[a]=e.dataPoints;if(!a||!yS(a))return;let s=t(a.xValue,i,r),u=Ii({label:s,measureReactContent:n,axisSide:o}),c=a.x1-a.x0;if(c-10>=10){let e=(c-u)/2;l.push({formatted:s,value:a.xValue,startPosition:a.x0+e,endPosition:a.x0+c-e})}}),l},[t,r,n,i])})({formatLabel:b,measureReactContent:o}),A=(e=>{let{formatLabel:t,measureReactContent:n,getAxisPosition:r}=e;return(0,M.useCallback)(e=>{let{xScale:i,plotWidth:o,xAxisLabelsMode:l,axisSide:a,supportsLabelRotation:s,xStep:u}=e,c=!1,d=Is(i,(e=>{let{plotWidth:t,xTickLabelWidth:n}=e;return t/n-5})({plotWidth:o,xTickLabelWidth:140}),l),p=d.map(yj),h=Math.max(0,(o+40)/d.length-10),g=d.map((e,i)=>{var o,l;let s=t(p[i],p,i),u=Ii({label:s,measureReactContent:n,axisSide:a}),c=Io({labelSize:Math.min(u,h),value:e,getAxisPosition:r,labelPosition:"center"});return{value:e,formatted:s,labelSize:u,startPosition:null!=(o=null==c?void 0:c.start)?o:0,endPosition:null!=(l=null==c?void 0:c.end)?l:0}});return s&&null!==u&&u<50&&(c=g.some(e=>e.labelSize>u)),c&&(g=g.map(e=>{var t,i;let o=Io({labelSize:Ii({label:e.formatted,measureReactContent:n,axisSide:(e=>{switch(e){case"top":return"right";case"bottom":return"left";case"left":return"top";case"right":return"bottom"}})(a)}),value:e.value,getAxisPosition:r,labelPosition:"center"});return Object.assign(Object.assign({},e),{startPosition:null!=(t=null==o?void 0:o.start)?t:0,endPosition:null!=(i=null==o?void 0:o.end)?i:0})})),{ticks:g,shouldRotate:c}},[t,r,n])})({formatLabel:b,measureReactContent:o,getAxisPosition:r});return(0,M.useMemo)(()=>{var e;if(!(null==(e=null==c?void 0:c.domain())?void 0:e.some(e=>null!==e))||0===y)return{ticks:[],shouldRotate:!1,shouldHideTicks:!0};switch(bb({xType:u,isTimeseriesBarAxis:l,vizType:h,comboPlotType:g})){case a.Mekko:return{ticks:j({axisSide:i}),shouldRotate:!1,shouldHideTicks:!1};case a.Timeseries:return{ticks:x({plotMainSize:y,labelsMode:p,axisSide:i}),shouldRotate:!1,shouldHideTicks:!1};case a.Dynamic:return{ticks:C({plotMainSize:y,labelsMode:p,axisSide:i}),shouldRotate:!1,shouldHideTicks:!1};case a.Continuous:return{ticks:v({plotMainSize:y,labelsMode:p,axisSide:i}),shouldRotate:!1,shouldHideTicks:!1};default:{let{ticks:e,shouldRotate:t}=A({xScale:c,plotWidth:f,xAxisLabelsMode:p,axisSide:i,supportsLabelRotation:!!(!s&&(null==n?void 0:n.supportsRotatedTicks)),xStep:d});return{ticks:e,shouldRotate:t,shouldHideTicks:0===e.length||null!==d&&!l&&d<10}}}},[u,l,h,g,j,i,C,y,p,v,x,s,null==n?void 0:n.supportsRotatedTicks,A,c,f,d])})({formatLabel:o,options:p,getAxisPosition:g,axisSide:l}),b=0===f.length||!!(null==p?void 0:p.hideMainAxis);return(0,h.jsxs)(h.Fragment,{children:[Ik(t,n,p)&&(0,h.jsx)(D6,{getAxisPosition:g,tickValues:f.map(e=>null==e?void 0:e.value),axis:"x",axisSide:l}),(0,h.jsxs)("g",{role:"graphics-object group","aria-roledescription":"top"===l?"top axis":"bottom axis",children:[b?(0,h.jsx)(In,{sides:[l]}):(0,h.jsx)(IA,{side:l,ticks:f,shouldRotate:m,shouldHideTicks:y},"".concat(d,"-").concat(t)),IP(r,p)&&(0,h.jsx)(D9,{label:r,onLabelChange:i,side:l})]})]})},Ik=(e,t,n)=>!!(null==n?void 0:n.withVerticalGridLines)&&("lines"===t||![...uJ,...uq,"combo"].includes(e)),IP=(e,t)=>void 0!==e&&!(null==t?void 0:t.hideMainAxis),IS=e=>{let{formattedTickValue:t,side:n}=e,r=mu("leftAxisWidth");return(0,h.jsx)(Ir,Object.assign({},IL(n,r),{textAnchor:IM(n),dominantBaseline:IO(n),children:t.rich}))},IL=(e,t)=>{switch(e){case"top":case"bottom":case"right":return{x:0,y:0};case"left":return{x:t,y:0}}},IM=e=>{switch(e){case"top":case"bottom":return"middle";case"left":return"end";case"right":return"start"}},IO=e=>"top"===e||"bottom"===e?"text-before-edge":"central",IT=e=>{let{side:t,getYAxisPosition:n,formatLabel:r=up,tickValues:i}=e,o=mu("isPlotMeasured"),{getAnimationProps:l,getNonAnimatedProps:a}=D4({axis:"y"});return(0,h.jsx)(Ie,{side:t,children:o?(0,h.jsx)(eg.N,{custom:n,children:i.map((e,o)=>{var a;return(0,h.jsx)(ed.P.g,Object.assign({},l(null!=(a=n(e))?a:0),{children:(0,h.jsx)(IS,{formattedTickValue:r(yj(e),i.map(yj),o),side:t})}),String(e))})}):(0,h.jsx)(h.Fragment,{children:i.map((e,n)=>(0,h.jsx)("g",Object.assign({},a(e),{children:(0,h.jsx)(IS,{formattedTickValue:r(yj(e),i.map(yj),n),side:t})}),"".concat(String(e),"-").concat(n)))})})},ID=e=>{let{formatLabel:t,label:n,onLabelChange:r,side:i="right",scale:o="primary"}=e,{flipAxes:l,getYAxisPosition:a,getSecondaryYAxisPosition:s,options:u}=PD(),{seriesLabels:c}=DH(),d=(e=>{let{flipAxes:t,scale:n,yAxisLabelsMode:r,options:i}=e,{yScale:o,secondaryYScale:l}=PD(),a=b3("plotWidth"),s=b3("plotHeight"),u=t?a:s,c=null==i?void 0:i.useLogScale,d="secondary"===n?l:o;return(0,M.useMemo)(()=>Is(d,(e=>{let{plotMainSize:t,yTickLabelHeight:n,useLogScale:r}=e;return r?Math.min(t/(6*n),4):t/(6*n)})({plotMainSize:u,yTickLabelHeight:12,useLogScale:c}),r),[u,d,c,r])})({flipAxes:l,scale:o,options:u,yAxisLabelsMode:gG(e=>e.computedConfig.yAxisLabelsMode)});if("secondary"===o&&c.length>0)return(0,h.jsx)(Ie,{side:i,children:(0,h.jsx)(DY,{})});if(II(d,o,u))return(0,h.jsx)(In,{sides:[i]});let p="secondary"===o?s:a;return(0,h.jsxs)(h.Fragment,{children:[(null==u?void 0:u.withHorizontalGridLines)&&(0,h.jsx)(D6,{getAxisPosition:p,tickValues:d,axis:"y",axisSide:i}),(0,h.jsxs)("g",{role:"graphics-object group","aria-roledescription":"left"===i?"left axis":"right axis",children:[(0,h.jsx)(IT,{side:i,getYAxisPosition:p,formatLabel:t,tickValues:d}),Iz(n,u)&&(0,h.jsx)(D9,{label:n,onLabelChange:r,side:i})]})]})},II=(e,t,n)=>0===e.length||1===e.length&&0===e[0]||(null==n?void 0:n.hideCrossAxis)||"secondary"===t&&"single"===(null==n?void 0:n.comboPlotAxisCount),Iz=(e,t)=>void 0!==e&&!(null==t?void 0:t.hideCrossAxis),IE=(e,t)=>"translate(".concat(e," ").concat(t,")"),IH=e=>{let{side:t,children:n}=e,r=((e,t,n,r,i,o,l,a)=>{switch(e){case"top":return IE(t,n-0-a);case"right":return IE(t+r+6*(l>1),n);case"bottom":return IE(t,n+0+i);case"left":return IE(t-6*(o>1)-o,n)}})(t,b3("plotOffsetX"),b3("plotOffsetY"),b3("plotWidth"),b3("plotHeight"),mu("leftAxisWidth"),mu("rightAxisWidth"),mu("topAxisHeight"));return(0,h.jsx)("g",{transform:r,children:n})},IV=e=>{let{topLabel:t,formatTopLabel:n=up,onTopLabelChange:r,rightLabel:i,formatRightLabel:o=up,onRightLabelChange:l,bottomLabel:a,formatBottomLabel:s=up,onBottomLabelChange:u,leftLabel:c,formatLeftLabel:d=up,onLeftLabelChange:p,reverseCrossAxisPosition:g}=e,{flipAxes:f}=PD(),{seriesLabels:m}=DH(),y=gG(e=>e.computedConfig.comboPlotType),b=gG(e=>e.computedConfig.type),{legendPosition:x}=DD(),C={vizType:b,comboPlotType:y,label:t,formatLabel:n,onLabelChange:r},v={vizType:b,comboPlotType:y,label:i,formatLabel:o,onLabelChange:l},j={vizType:b,comboPlotType:y,label:a,formatLabel:s,onLabelChange:u},A={vizType:b,comboPlotType:y,label:c,formatLabel:d,onLabelChange:p},w=m.length>0,k=g&&"right"!==x;return(0,h.jsxs)(h.Fragment,f?{children:[(0,h.jsx)(IH,{side:k?"bottom":"top",children:(0,h.jsx)(ID,Object.assign({side:k?"bottom":"top",scale:"heatmap"===b||"combo"===b?"primary":"secondary"},"combo"===b?v:A))}),"heatmap"===b?(0,h.jsx)(IH,{side:"right",children:(0,h.jsx)(Iw,Object.assign({side:"right"},C))}):(0,h.jsx)(In,{sides:["right"]}),(0,h.jsx)(IH,{side:k?"top":"bottom",children:(0,h.jsx)(ID,Object.assign({side:k?"top":"bottom",scale:"heatmap"===b||"combo"===b?"secondary":"primary"},"combo"===b?A:v))}),"heatmap"===b?(0,h.jsx)(In,{sides:["left"]}):(0,h.jsx)(IH,{side:"left",children:(0,h.jsx)(Iw,Object.assign({side:"left"},j))})]}:{children:["heatmap"===b?(0,h.jsx)(IH,{side:"top",children:(0,h.jsx)(Iw,Object.assign({side:"top"},C))}):(0,h.jsx)(In,{sides:["top"]}),(0,h.jsx)(IH,{side:k?"left":"right",children:(0,h.jsx)(ID,Object.assign({side:k?"left":"right",scale:"heatmap"===b||"combo"===b||w?"secondary":"primary"},"combo"===b||w?A:v))}),"heatmap"===b?(0,h.jsx)(In,{sides:["bottom"]}):(0,h.jsx)(IH,{side:"bottom",children:(0,h.jsx)(Iw,Object.assign({side:"bottom"},j))}),(0,h.jsx)(IH,{side:k?"right":"left",children:(0,h.jsx)(ID,Object.assign({side:k?"right":"left",scale:"heatmap"===b||"combo"===b||w?"primary":"secondary"},"combo"===b||w?v:A))})]})},IF=e=>{let{axis:t,flipAxes:n,getAxisPosition:r}=e,i=t===(n?"y":"x")?l.Y:l.X,{values:o}=mh(),a=mu("isPlotMeasured"),s=b3("plotWidth"),u=b3("plotHeight"),{getAnimationProps:c}=D4({axis:t});if(!a)return null;let d=r(0);return(0,h.jsx)(ed.P.g,Object.assign({},c(null!=d?d:0),{children:(0,h.jsx)(L2,{orientation:i,origin:t===(n?"x":"y")?s:u,crossOrigin:0,end:0,stroke:o.originLineColor})}))},IB=()=>{let{getXAxisPosition:e,getTimeseriesBarAxisPosition:t,isTimeseriesBarAxis:n,hasPositiveAndNegativeXValues:r,getYAxisPosition:i,hasPositiveAndNegativeYValues:o,flipAxes:l=!1}=PD(),a=n?t:e;return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(eg.N,{custom:a,children:r&&(0,h.jsx)(IF,{axis:"x",flipAxes:l,getAxisPosition:a})},"x-".concat(String(l))),(0,h.jsx)(eg.N,{custom:i,children:o&&(0,h.jsx)(IF,{axis:"y",flipAxes:l,getAxisPosition:i})},"y-".concat(String(l)))]})},IR=e=>{let{flipAxes:t,textScale:n=1,font:r,waterfallTotalLabel:i="Total",children:o}=e,l=(0,M.useId)(),a=(0,M.useId)(),{height:s,width:u,setElement:c}=ft(),{height:d,setElement:p}=ft(),{height:g,setElement:f}=ft(),{width:m,setElement:y}=ft(),{width:b,setElement:x}=ft(),[C,v]=(0,M.useState)(null),[j,A]=(0,M.useState)(null),[w,k]=(0,M.useState)(null),[P,S]=(0,M.useState)(null),[L,O]=(0,M.useState)(0),T="number"==typeof n?n:Number.parseFloat(n)||1,D=(0,M.useMemo)(()=>b>1?Math.max(b+6,12):12,[b]),I=(0,M.useMemo)(()=>{let e=Math.max(C||j?18.5*T:0,(P?5+10.5*T:0)+(d>1?d+0:0));return t||(e+=L),Math.max(e,0)},[t,C,L,j,T,d,P]),z=(0,M.useMemo)(()=>{let e=Math.max(u,1);return e-=Math.max(b+6,12),e-=Math.max(m+6,12),t&&(e-=L),Math.max(e,1)},[u,t,b,L,m]),E=(0,M.useMemo)(()=>{let e=Math.max(s,1)-I;return g>1&&(e-=g+0),w&&(e-=5+10.5*T),Math.max(e,1)},[g,w,s,I,T]),H=(0,M.useMemo)(()=>u>0&&s>0&&d>0&&g>0&&m>0&&b>0,[u,s,d,g,m,b]),V=dP(r),F=(0,M.useMemo)(()=>({setSvgContainer:c,chartWidth:u,chartHeight:s,setPlotPadding:O,isPlotMeasured:H,underPlotPortalId:l,overPlotPortalId:a,textScale:T,font:V,waterfallTotalLabel:i,setTopAxisRef:p,setTopAxisLabelRef:S,topAxisHeight:d,setBottomAxisRef:f,bottomAxisHeight:g,setBottomAxisLabelRef:k,setLeftAxisRef:x,setLeftAxisLabelRef:v,leftAxisWidth:b,setRightAxisRef:y,setRightAxisLabelRef:A,rightAxisWidth:m}),[c,u,s,H,l,a,T,V,i,p,d,f,g,x,b,y,m]),B=(0,M.useMemo)(()=>({plotOffsetX:D,plotOffsetY:I,plotWidth:z,plotHeight:E}),[D,I,z,E]);return(0,h.jsx)(ms.Provider,{value:F,children:(0,h.jsx)(b5.Provider,{value:B,children:o})})},IY=()=>{let e=b3("plotWidth"),t=b3("plotHeight"),n=mh();return(0,h.jsx)(ed.P.rect,Object.assign({animate:{x:0,y:0,width:e,height:t},transition:fq,fill:"none",stroke:n.values.gridLineColor},L0.gridLine,{rx:8}))},IG=e=>{let{plot:t,axes:n=(0,h.jsx)(In,{sides:["top","bottom","left","right"]}),originLines:r,hasOutline:i=!0}=e,o=b3("plotOffsetX"),l=b3("plotOffsetY"),a=mu("isPlotMeasured");return(0,h.jsxs)(h.Fragment,{children:[n,a&&(0,h.jsxs)(ed.P.g,{id:Ls,initial:!1,animate:{x:o,y:l},transition:fq,children:[i?(0,h.jsx)(IY,{}):null,t,r]})]})},IU=p.I4.div(lF()),IW=p.I4.div(lB(),1),IN=p.I4.div(lR(),3),IK=p.I4.svg(lY(),2),IZ=e=>{let{children:t,plotAddons:n}=e,r=mu("chartWidth"),i=mu("chartHeight"),o=mu("setSvgContainer"),l=mu("underPlotPortalId"),a=mu("overPlotPortalId");return(0,h.jsxs)(IU,{ref:o,children:[(0,h.jsx)(IW,{id:l}),r>0&&i>0&&(0,h.jsx)(IK,{viewBox:"0 0 ".concat(r," ").concat(i),children:t}),n,(0,h.jsx)(IN,{id:a})]})},IX=e=>{let{vizType:t,aestheticMappings:n,titleContent:r,chartSummary:i,footerContent:o,plot:l,trendline:a,axes:s,originLines:u,addons:c=[],data:d,vizPalette:p,fillTypeRange:g,lineTypeRange:f,highlightStyle:m,options:y,getDataPointId:b,goalLines:x,averageLine:C,xGoalValue:v,yGoalValue:j,percentageValueStrategy:A,formatSeriesLabel:w,curveType:k,textScale:P,font:S,comboPlotAxisCount:L,waterfallTotalLabel:O,flipAxes:T}=e,{group:D,x:I,y:z,color:E,alpha:H,fillType:V,lineType:F}=n,B=(0,h.jsxs)(h.Fragment,{children:[x,C,a]}),R=(e=>{let{vizType:t,data:n,x:r,y:i}=e;return(0,M.useMemo)(()=>"waterfall"!==t?n:(e=>{let{data:t,y:n}=e,r=t.getValues(n),i=[];for(let[e,t]of r.entries()){let n=0===e,o=e===r.length-1,l=bn(t);i.push(n?bF:o?bY:l?bB:bR)}return t.add({variableKey:bV,type:gP.Text,values:i}),t})({data:(e=>{let{data:t,y:n}=e,r=t.getValues(n),i=[],o=[],l=0;for(let[e,t]of r.entries()){if(null===t){i.push(null),o.push(null);continue}let n=0===e||e===r.length-1,a=n?0:l,s=fl(t)+(n?0:l);l=s,i.push(a),o.push(s)}return t.add({variableKey:bE,type:t.getType(n),values:i}),t.add({variableKey:bH,type:t.getType(n),values:o}),t})({data:(e=>{let{data:t,x:n,y:r}=e,i=t.getValues(r).filter(pM).map(fl);if(0===i.length)return t;let o=0;for(let e of i)o+=e;return t.appendValues(n,[yC(bY)]),t.appendValues(r,[o]),t})({data:n.clone(),x:r,y:i}),y:i}),y:i}),[t,n,r,i])})({vizType:t,data:d,x:I,y:z});return(0,h.jsx)(IR,{textScale:P,font:S,waterfallTotalLabel:O,flipAxes:T,children:(0,h.jsx)(LL,{vizType:t,aestheticMappings:n,data:R,options:y,xGoalValue:v,yGoalValue:j,comboPlotAxisCount:L,flipAxes:T,children:(0,h.jsx)(b_,{vizType:t,data:R,vizPalette:p,lineTypeRange:f,lineType:F,color:E,alpha:H,fillType:V,fillTypeRange:g,children:(0,h.jsx)(L4,{data:R,group:D,vizType:t,children:(0,h.jsx)(DX,{aestheticMappings:n,addons:c,data:R,vizType:t,getDataPointId:b,percentageValueStrategy:A,curveType:k,options:y,children:(0,h.jsx)(yH,{vizType:t,chartHasTrend:void 0!==a,data:R,aestheticMappings:n,highlightStyle:m,children:(0,h.jsx)(DI,{data:R,group:D,formatSeriesLabel:w,customLegendPosition:null==y?void 0:y.customLegendPosition,children:(0,h.jsx)(DV,{data:R,x:I,y:z,group:D,formatLabel:w,children:(0,h.jsx)(b2,{titleContent:r,chartSummary:i,footerContent:o,children:(0,h.jsxs)(IZ,{plotAddons:B,children:[(0,h.jsx)(IG,Object.assign({},{plot:l,axes:s,originLines:u})),(0,h.jsx)(DJ,{addons:c})]})})})})})})})})})})},I_=p.I4.div(lG()),IQ=(0,M.forwardRef)((e,t)=>{let{children:n}=e,r=b3("plotOffsetX"),i=b3("plotWidth");return(0,h.jsx)(I_,{ref:t,style:{left:r+i+16},children:n})});IQ.displayName="SideLegend";let IJ=(0,p.I4)(ed.P.div)(lU()),Iq=(0,p.I4)(ed.P.div)(lW()),I$=e=>{let{children:t,vizType:n}=e,r=Mi("pieRadius"),i=b3("plotOffsetX"),o=b3("plotOffsetY"),l=Mi("pieCenterX"),a=Mi("pieCenterY"),s=Mo(r,n),u=ft();if(s<50)return null;let c=2*s-16,d=Math.min(c/Math.sqrt(Math.pow(u.width,2)+Math.pow(u.height,2)),1);return(0,h.jsx)(IJ,{initial:!1,animate:{width:c,height:c,left:i+l-s+8,top:o+a-s+8},transition:fq,children:(0,h.jsx)(Iq,{ref:u.setElement,initial:!1,animate:{scale:d,x:"-50%",y:"-50%"},transition:fq,children:t})})},I1=e=>{let{vizType:t,children:n,addons:r=[],value:i,valueType:o,label:l,valueLabel:a,getDataPointId:s=TN}=e,u=(e=>{let{vizType:t,value:n,valueType:r,label:i,valueLabel:o,getDataPointId:l}=e,{getColor:a,getFillType:s}=bX(),{visibleObservations:u}=L9(),c=Mi("pieRadius"),d=Mi("pieCenterX"),p=Mi("pieCenterY"),h=mu("isPlotMeasured"),g=Df({observations:u,value:n});return(0,M.useCallback)(()=>{if(!h)return[];let e=g.map(e=>e.value);return g.map(u=>{let h=u.data,g=h[n],f=i?h[i]:null,m=a(h),y=s(h);return{type:t,id:l(h),startAngle:u.startAngle,endAngle:u.endAngle,pieValue:g,valueType:r,percentage:y8({strategy:"divide-by-total",values:e,absoluteValue:g}),pieLabel:f,pieRadius:c,pieCenterX:d,pieCenterY:p,vizColor:m,fillType:y,valueLabel:o,observation:h}})},[t,g,a,l,s,h,i,d,p,c,n,o,r])})({vizType:t,value:i,valueType:o,label:l,valueLabel:a,getDataPointId:s});return(0,h.jsx)(xc,{dataPoints:u(),addons:r,children:n})},I0=e=>{let{vizType:t,data:n,aestheticMappings:r,rightLegend:i,centerContent:o,chartSummary:l,titleContent:a,footerContent:s,plot:u,addons:c=[],valueLabel:d,getDataPointId:p,formatDataLabel:g,formatSeriesLabel:f,textScale:m,font:y,legendPosition:b,shouldShowLabels:x,vizPalette:C}=e,v=ft(),{value:j,label:A,color:w}=r;return(0,h.jsx)(IR,{textScale:m,font:y,children:(0,h.jsx)(L4,{vizType:t,data:n,label:A,children:(0,h.jsx)(Mr,{sideLegendWidth:v.width,legendPosition:b,shouldShowLabels:x,formatDataLabel:g,value:j,label:A,children:(0,h.jsx)(b_,{vizType:t,data:n,color:w,vizPalette:C,children:(0,h.jsx)(I1,{vizType:t,addons:c,value:j,valueType:n.getType(j),label:A,valueLabel:d,getDataPointId:p,children:(0,h.jsx)(yH,{vizType:t,data:n,aestheticMappings:r,children:(0,h.jsx)(DI,{data:n,label:A,formatSeriesLabel:f,children:(0,h.jsxs)(b2,{titleContent:a,chartSummary:l,footerContent:s,children:[(0,h.jsxs)(IZ,{plotAddons:o?(0,h.jsx)(I$,{vizType:t,children:o}):null,children:[(0,h.jsx)(IG,{plot:u,hasOutline:!1}),(0,h.jsx)(DJ,{addons:c})]}),i?(0,h.jsx)(IQ,{ref:v.setElement,children:i}):null]})})})})})})})})},I2={variant:"muted",size:"xs"},I5={[gP.Date]:(0,h.jsx)(Cr,Object.assign({},I2)),[gP.Datetime]:(0,h.jsx)(Cr,Object.assign({},I2)),[gP.Year]:(0,h.jsx)(Ci,Object.assign({},I2)),[gP.Month]:(0,h.jsx)(Ci,Object.assign({},I2)),[gP.MonthYear]:(0,h.jsx)(Ci,Object.assign({},I2)),[gP.DayMonth]:(0,h.jsx)(Ci,Object.assign({},I2)),[gP.WeeklyDateRange]:(0,h.jsx)(Ci,Object.assign({},I2)),[gP.WeeklyDateRangeWithYear]:(0,h.jsx)(Ci,Object.assign({},I2)),[gP.Quarter]:(0,h.jsx)(Ci,Object.assign({},I2)),[gP.Integer]:(0,h.jsx)(Ct,Object.assign({},I2)),[gP.Decimal]:(0,h.jsx)(Ct,Object.assign({},I2)),[gP.Percentage]:(0,h.jsx)(Cn,Object.assign({},I2)),[gP.Duration]:(0,h.jsx)(Cr,Object.assign({},I2)),[gP.Text]:(0,h.jsx)(Ce,Object.assign({},I2)),[gP.Boolean]:(0,h.jsx)(Ce,Object.assign({},I2))},I3=e=>{let{formattingType:t=gP.Text,currencyIso:n=gk.Usd}=e;if(t===gP.Currency)switch(n){case gk.Gbp:return(0,h.jsx)(Ca,Object.assign({},I2));case gk.Usd:return(0,h.jsx)(Co,Object.assign({},I2));case gk.Eur:return(0,h.jsx)(Cl,Object.assign({},I2));default:return(0,h.jsx)(Co,Object.assign({},I2))}return I5[t]},I7="graphy__table-plot",I9=p.I4.div(lN(),sz.md),I4=p.I4.table(lK()),I6=p.I4.thead(lZ()),I8=p.I4.th(lX(),uv("grey90")),ze=p.I4.td(l_(),h0,m1,uv("textSecondary"),h_(1),h_(1.5),e=>{let{$textAlign:t}=e;return t}),zt=p.I4.div(lQ(),h_(.75),h_(1.25),h_(1.5),h_(1),e=>{let{$textAlign:t}=e;return t}),zn=p.I4.div(lJ()),zr=p.I4.div(lq(),h0,m$,uv("textPrimary"),e=>{let{$textAlign:t}=e;return+("start"===t)}),zi=p.I4.tbody(l$()),zo=p.I4.tr(l1(),I8,ze,uv("grey70"),uv("grey90"),uv("grey90"),I8,uv("grey90"),sz.md,sz.md,uv("grey100"),ze,sz.md,ze,sz.md,ze,uv("grey90")),zl=e=>{let{columns:t,data:n,titleContent:r,footerContent:i}=e,o=t.length*hG(10);return(0,h.jsx)(b2,{titleContent:r,footerContent:i,children:(0,h.jsx)(I9,{children:(0,h.jsxs)(I4,{id:I7,"aria-rowcount":n.length,style:{minWidth:o},children:[(0,h.jsx)(I6,{children:(0,h.jsx)(zo,{children:t.map((e,t)=>{let{title:n,formattingType:r,currencyIso:i}=e;return(0,h.jsx)(I8,{children:(0,h.jsxs)(zt,{$textAlign:za(r),children:[(0,h.jsx)(zn,{children:(0,h.jsx)(I3,{formattingType:r,currencyIso:i})}),(0,h.jsx)(zr,{$textAlign:za(r),title:n,children:n})]})},"column-".concat(t))})})}),(0,h.jsx)(zi,{children:n.map((e,n)=>(0,h.jsx)(zo,{children:t.map((t,r)=>{let{getCellValue:i,formatValue:o=up,formattingType:l}=t,a=o(i(e));return(0,h.jsx)(ze,{$textAlign:za(l),title:a.plain,children:a.rich},"cell-".concat(n,"-").concat(r))})},"row-".concat(n)))})]})})})},za=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:gP.Text;return ck(e)?"end":"start"},zs=e=>{let{formattingType:t,intl:n,value:r,currency:i,numberFormat:o}=e;switch(t){case gP.Boolean:return fc({value:r});case gP.Currency:return fx({intl:n,value:r,currency:i,numberFormat:o});case gP.Date:return fK({intl:n,value:r});case gP.Datetime:return fZ({intl:n,value:r});case gP.Year:return fF({intl:n,value:r});case gP.Quarter:return fz({value:r});case gP.MonthYear:return fD({intl:n,value:r});case gP.Month:return fT({intl:n,value:r});case gP.DayMonth:return fA({intl:n,value:r});case gP.WeeklyDateRange:return fH({intl:n,value:r});case gP.WeeklyDateRangeWithYear:return fV({intl:n,value:r});case gP.Decimal:return fw({intl:n,value:r,numberFormat:o});case gP.Duration:return fM({value:r});case gP.Integer:return fO({intl:n,value:r});case gP.Percentage:return fI({intl:n,value:r,numberFormat:o});case gP.Text:return fE({value:r})}},zu=p.I4.div(l0(),8,e=>{let{$justify:t}=e;return t},e=>{let{$align:t}=e;return t},e=>{let{$direction:t}=e;return"vertical"===t?"column":"row"},e=>{let{$direction:t}=e;return"vertical"===t?"width: 100%; height: 100%;":"width: 100%;"}),zc=p.I4.div(l2()),zd=(0,p.AH)(l5(),uv("legendBorderColor"),h_(.25),h_(.75)),zp=p.I4.div(l7(),4,sR.subtle,e=>{let{$isHidden:t}=e;return t?.5:1},uv("legendBackground"),e=>{let{$variant:t}=e;return"pill"===t&&zd},e=>{let{$isClickable:t}=e;return t&&(0,p.AH)(l3())}),zh=p.I4.div(l6(),sc,h0,e=>{let{$variant:t}=e;return"pill"===t&&(0,p.AH)(l9(),uv("legendTextColor"))},e=>{let{$variant:t}=e;return"popover"===t&&(0,p.AH)(l4(),uv("textPrimary"))}),zg=p.I4.span(l8(),uv("textSecondary")),zf=p.I4.div(ae(),h_(-.25)),zm=p.I4.div(at()),zy=e=>{let{theme:t,legendSymbol:n,vizColor:r,opacity:i,isDimmed:o,highlightStyle:l,backgroundColor:a}=e;if("bar"===n)return bc({theme:t,fill:r,opacity:null!=i?i:1,isDimmed:o,highlightStyle:l,backgroundColor:a});if("line"===n)return bg({theme:t,color:r,isDimmed:o,highlightStyle:l});try{return eJ.Ay.mix(t.values.grey100,r,null!=i?i:1).hex()}catch(e){return r}},zb=e=>{let{label:t,value:n,vizColor:r,opacity:i,fillType:o,lineType:l,legendSymbol:a,customLegendSymbol:s,variant:u="pill",isHidden:c,onClick:d,isDimmed:p,highlightStyle:g,shouldShowValue:f}=e,m=mh(),{hasMouseOver:y,mouseOverTargetProps:b}=g2(),x=!!d;if(null===t||null===r)return null;let C=zy({theme:m,legendSymbol:a,vizColor:r,opacity:i,isDimmed:p,highlightStyle:g}),v=c?(0,h.jsx)(zm,{children:(0,h.jsx)(xO,{size:"xs"})}):y?(0,h.jsx)(zm,{children:(0,h.jsx)(xT,{size:"xs"})}):s||(0,h.jsx)(s6,{symbol:a,fill:C,pattern:((e,t,n)=>{if(["bar","tile","pie","donut"].includes(e)){if("hatched"===t)return"hatched"}else if("line"===e){if("dashed"===n)return"hatched";if("dotted"===n)return"dotted"}})(a,o,l)});return(0,h.jsxs)(zp,Object.assign({},x&&b,{$isClickable:x,$isHidden:!!c,role:"listitem","aria-label":"Legend item",$variant:u,onClick:d,children:[(0,h.jsx)(zf,{children:v}),(0,h.jsxs)(zh,{$variant:u,title:t.plain,children:[t.rich,f&&n?(0,h.jsxs)(zg,{children:[(0,h.jsx)("span",{children:"\xb7"}),n.rich]}):null]})]}))};function zx(e){let{seriesKey:t,visibleSeriesLength:n,isHiddenSeries:r}=e,i=!(!t||!(null==r?void 0:r(t)));return{isHidden:i,canToggleVisibility:n>1||i}}let zC=(0,p.i7)(an()),zv=p.I4.div(ar()),zj=p.I4.div(ai(),s_.popover,uv("grey100"),uv("grey90"),zC),zA=p.I4.div(ao(),h_(.75),h_(1)),zw=p.I4.div(al(),h_(.5)),zk=p.I4.div(aa(),uv("grey90")),zP=h_(1.5),zS=p.I4.div(as()),zL=p.I4.div(au(),zd,zP,4),zM=p.I4.div(ac()),zO=p.I4.div(ad(),sc,uv("legendTextColor")),zT=p.I4.div(ap(),zd,zP),zD=p.I4.div(ah(),zd),zI=M.forwardRef(function(e,t){var{count:n,formatLabel:r,legendSymbol:i}=e,o=sJ(e,["count","formatLabel","legendSymbol"]);let l=mh();return n<=0?null:(0,h.jsxs)(zS,Object.assign({ref:t,"aria-label":"Show ".concat(n," hidden legend items")},o,{children:[(0,h.jsxs)(zL,{children:[(0,h.jsx)(zM,{children:(0,h.jsx)(s6,{symbol:i,fill:l.values.grey60})}),(0,h.jsxs)(zO,{children:["+",r(n).rich]})]}),(0,h.jsx)(zT,{}),(0,h.jsx)(zD,{})]}))}),zz=hX(.5),zE=e=>{let{overflowingItems:t,formatLabel:n,isHiddenSeries:r,locallyVisibleSeriesLength:i,onToggleSeriesVisibility:o,highlightStyle:l}=e,a=ml(),s=DL(),u=t.length,c=s(0);return(0,h.jsxs)(eO.bL,{children:[(0,h.jsx)(eO.l9,{asChild:!0,onClick:e=>e.stopPropagation(),children:(0,h.jsx)(zv,{role:"button",children:(0,h.jsx)(zI,{count:u,formatLabel:n,legendSymbol:c})})}),(0,h.jsx)(my,{container:null==a?void 0:a.container,children:(0,h.jsxs)(zj,{as:eO.UC,side:"bottom",sideOffset:zz,children:[(0,h.jsx)(zA,{children:(0,h.jsx)(zw,{role:"list",children:t.map((e,t)=>{let n=s(t),{isHidden:a,canToggleVisibility:u}=zx({seriesKey:e.seriesKey,visibleSeriesLength:i,isHiddenSeries:r}),c=u&&{onClick:()=>o(e.seriesKey)};return(0,h.jsx)(zb,Object.assign({legendSymbol:n,isHidden:a,highlightStyle:l},c,e,{variant:"popover"}),t)})})}),(0,h.jsx)(zk,{as:eO.i3})]})})]})},zH=()=>{let e=(0,B.A)();return t=>{let n=fO({intl:e,value:t});return{plain:n,rich:n}}},zV=e=>{let{seriesKey:t,formatSeriesLabel:n}=e;return n(yj(t),yj(t))},zF=(e,t)=>{let n=zR(e,t);return 0===n.length?null:n.reduce((e,t)=>{try{return e+fl(t)}catch(t){return e}},0)},zB=(e,t)=>{let n=zR(e,t),r=zF(e,t);return 0===n.length||null===r?null:r/n.length},zR=(e,t)=>e.map(e=>e[t]).filter(e=>{if(null===e)return!1;try{return fl(e),!0}catch(e){return!1}}).map(fl),zY=(e,t)=>{var n,r;return null!=(r=null==(n=[...e].reverse()[0])?void 0:n[t])?r:null},zG=[...uJ,...uq,"mekko","line","areaStacked","combo","scatter","bubble"],zU=e=>{let{formatted:t}=e;return(0,h.jsx)(h.Fragment,{children:t.map((e,n)=>{let{rich:r}=e,i=n===t.length-1;return(0,h.jsxs)(M.Fragment,{children:[r,!i&&(0,h.jsx)(h.Fragment,{children:" \xb7 "})]},n)})})},zW=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:up,r=t.map(t=>n(t,e));return{plain:r.map(e=>{let{plain:t}=e;return t}).join("; "),rich:(0,h.jsx)(zU,{formatted:r})}},zN=e=>{var{availWidth:t,availHeight:n,highlightStyle:r,direction:i}=e,o=sJ(e,["availWidth","availHeight","highlightStyle","direction"]);let l=zH(),a=(e=>{let{vizType:t,data:n,aestheticMappings:r,formatSeriesLabel:i=up,formatLegendValue:o}=e,{getColor:l,getAlpha:a,getFillType:s,getLineType:u}=bX(),{isGroupHighlighted:c}=yE();return(0,M.useMemo)(()=>{if(zG.includes(t)){let{group:e}=r,{partitionKeys:t,partitionPathLabels:o,partitionsMap:d}=y_({observations:[...n],group:e});return t.map((e,t)=>{var n,r;let[p]=null!=(n=d.get(e))?n:[];return{seriesKey:e,label:zW(e,null!=(r=o[t])?r:[],i),vizColor:p?l(p):null,opacity:p?a(p):null,fillType:p?s(p):null,lineType:p?u(p):null,isDimmed:!!p&&!1===c(p)}})}return"pie"===t||"donut"===t?[...n].reduce((e,t)=>{let{label:n,value:c}=r;if(!o)return e;let d=yC(t[n]);return[...e,{seriesKey:d,label:zV({seriesKey:d,formatSeriesLabel:i}),value:o(t[c]),vizColor:l(t),opacity:a(t),fillType:s(t),lineType:u(t),isDimmed:!1}]},[]):[]},[r,n,o,i,a,l,s,u,c,t])})(o),s=mu("chartWidth"),u=b3("plotHeight"),c=null!=t?t:s,d=null!=n?n:u,p=yG(),{visibleCount:g,overflowCount:f}=(0,M.useMemo)(()=>{let e="horizontal"===i?c:d,t=0,n=0;for(let o of a){let s=p((0,h.jsx)(zb,Object.assign({legendSymbol:"bar",highlightStyle:r},o))),u=p((0,h.jsx)(zI,{count:a.length-t-1,formatLabel:l,legendSymbol:"bar"})),c=n+8*(n>0)+("horizontal"===i?s.width:s.height),d=c,g="horizontal"===i?u.width:u.height;if(g>0&&(d+=8+g),d>e)return{visibleCount:t,overflowCount:a.length-t};n=c,t++}return{visibleCount:a.length,overflowCount:0}},[i,c,d,a,p,r,l]);return{allItems:a,visibleItems:a.slice(0,g),visibleCount:g,overflowingItems:a.slice(g),overflowCount:f}},zK=e=>{var{availWidth:t,justify:n="start",align:r="center",direction:i="horizontal",shouldShowValues:o,onLegendItemClick:l,highlightStyle:a}=e,s=sJ(e,["availWidth","justify","align","direction","shouldShowValues","onLegendItemClick","highlightStyle"]);let{onToggleSeriesVisibility:u,isHiddenSeries:c}=L9(),{legendPosition:d}=DD(),p=b3("plotHeight"),g=DL(),{allItems:f,visibleItems:m,visibleCount:y,overflowingItems:b}=zN(Object.assign(Object.assign({},s),{availWidth:t,availHeight:p,highlightStyle:a,direction:i})),x=zH(),C=(0,M.useMemo)(()=>[...m,...b].filter(e=>{let{seriesKey:t}=e;return!c(t)}),[m,b,c]);return 0===f.length||"top"!==d?(0,h.jsx)(zc,{}):(0,h.jsxs)(zu,{role:"list","aria-label":"Legend",$justify:n,$direction:i,$align:r,children:[m.slice(0,y).map((e,t)=>{var{seriesKey:n}=e,r=sJ(e,["seriesKey"]);let i=g(t),{isHidden:l,canToggleVisibility:s}=zx({seriesKey:n,visibleSeriesLength:C.length,isHiddenSeries:c}),d=s&&{onClick:()=>u(n)};return(0,h.jsx)(zb,Object.assign({legendSymbol:i,isHidden:l,highlightStyle:a,shouldShowValue:o},d,r),"".concat(n,"-").concat(t))}),(0,h.jsx)(zE,{highlightStyle:a,locallyVisibleSeriesLength:C.length,overflowingItems:b,formatLabel:x,isHiddenSeries:c,onToggleSeriesVisibility:u})]})},zZ=(0,p.I4)(ed.P.div)(ag(),h_(1)),zX=p.I4.div(af(),h_(1)),z_=p.I4.div(am()),zQ=p.I4.div(ay(),h_(.25),h_(3)),zJ=p.I4.div(ab(),h_(.5)),zq=p.I4.span(ax(),su.black,uv("textPrimary")),z$=p.I4.span(aC()),z1=p.I4.div(av()),z0=p.I4.div(aj(),h_(.5),uv("textSecondary")),z2=p.I4.div(aA()),z5=p.I4.span(aw(),su.medium,uv("textPrimary")),z3=p.I4.div(ak(),e=>{let{$size:t}=e;switch(t){case"small":case"medium":return;case"large":return"calc(".concat(h_(.25)," * var(--typography-scale))")}},sR.subtle,e=>{let{$isHidden:t}=e;return t?.5:1},zq,e=>{let{$size:t}=e;switch(t){case"small":return"1.4em";case"medium":return"2.3em";case"large":return"2.6em"}},z1,e=>{let{$size:t}=e;switch(t){case"small":case"medium":return;case"large":return"calc(".concat(h_(.125)," * var(--typography-scale))")}},z5,e=>{let{$size:t}=e;switch(t){case"small":case"medium":return"1em";case"large":return"1.2em"}},z$,e=>{let{$size:t}=e;switch(t){case"small":case"medium":return"1em";case"large":return"1.2em"}}),z7=e=>{let{size:t,symbol:n,metricValue:r,metricValueStat:i,seriesLabel:o,metricLabel:l,isHidden:a,onLegendItemClick:s}=e,{hasMouseOver:u,mouseOverTargetProps:c}=g2(),d=!!s,p=d&&{role:"button",onClick:s},g=a?(0,h.jsx)(xO,{size:"xs"}):u?(0,h.jsx)(xT,{size:"xs"}):n;return(0,h.jsxs)(z3,Object.assign({},d&&c,{$size:t,$isHidden:!!a,"aria-label":"Headline metric",children:[(0,h.jsxs)(zJ,{children:[(0,h.jsx)(zq,{"aria-label":"Metric value",children:r}),l&&(0,h.jsx)(z$,{"aria-label":"Metric label",children:l})]}),(0,h.jsxs)(z1,{children:[i,(0,h.jsxs)(z0,Object.assign({},p,{children:[n?(0,h.jsx)(z2,{children:g}):null,(0,h.jsx)(z5,{"aria-label":"Series label",children:o})]}))]})]}))},z9=p.I4.div(aP(),su.medium),z4=p.I4.div(aS(),h_(.5),e=>{let{$size:t}=e;switch(t){case"small":case"medium":return"1em";case"large":return"1.2em"}}),z6=p.I4.div(aL(),su.medium),z8=p.I4.div(aM(),uj("currentColor",.2)),Ee=p.I4.div(aO(),e=>{let{$isPositive:t}=e;return uv(t?"trendPositiveColor":"trendNegativeColor")},z6,e=>{let{$size:t}=e;switch(t){case"small":case"medium":return"1em";case"large":return"1.2em"}}),Et=e=>{let{children:t,isPositive:n=!1,size:r}=e;return(0,h.jsxs)(Ee,{$isPositive:n,$size:r,children:[(0,h.jsx)(z8,{children:(0,h.jsx)(n?xE:xz,{})}),(0,h.jsx)(z6,{children:(0,h.jsx)("span",{children:t})})]})},En=e=>{let{stat:t,size:n,metric:r,metricLabel:i,metricLabelType:o,observations:l,comparisonValue:a,formatTrend:s,formatMetricLabel:u,seriesKey:c}=e;if("current"!==t||"none"===a||!s||!cA(o))return null;let d=l.at(-1),p="tail"===a?l.at(-2):l.at(0),g=((e,t,n)=>{let r=null==e?void 0:e[t],i=null==n?void 0:n[t];return"number"!=typeof i||"number"!=typeof r||0===i?null:(r-i)/i})(d,r,p);if(!g||0===g)return null;let f=i?null==p?void 0:p[i]:void 0;return(0,h.jsxs)(z4,{$size:n,children:[(0,h.jsx)(Et,{isPositive:g>0,size:n,children:s(Math.abs(g))}),void 0!==f?(0,h.jsxs)(z9,{children:["from ",u(f,c).rich]}):null]})},Er=e=>{var t;let n,{stat:r,size:i,observations:o,comparisonValue:l,metric:a,metricLabel:s,metricLabelType:u=gP.Text,seriesKey:c,hasMultipleSeries:d,legendSymbol:p,getColor:g,getAlpha:f,getFillType:m,getLineType:y,isGroupHighlighted:b,formatTrend:x,formatMetric:C=up,formatMetricLabel:v=up,formatSeriesLabel:j=up,isHidden:A,onLegendItemClick:w,highlightStyle:k}=e,P=mh(),S=(0,Z.s9)(),L=(0,M.useMemo)(()=>(e=>{let{stat:t,observations:n,seriesKey:r,metric:i,formatMetric:o}=e;switch(t){case"current":return o(zY(n,i),yj(r));case"average":return o(zB(n,i),yj(r));case"total":return o(zF(n,i),yj(r));case"conversion":return o(((e,t)=>{let n=zR(e,t),r=n[0],i=n[n.length-1];return void 0===r||void 0===i?null:i/r})(n,i),yj(r),gP.Percentage)}})({stat:r,observations:o,seriesKey:c,metric:a,formatMetric:C}),[C,a,o,c,r]),O=(0,M.useMemo)(()=>(e=>{let{stat:t,observations:n,seriesKey:r,metricLabel:i,metricLabelType:o,formatMetricLabel:l}=e;if(void 0===i)return null;switch(t){case"current":{let e=zY(n,i);return null===e?null:l(e,yj(r))}case"average":case"total":if(cA(o)){let e=((e,t)=>{var n,r;return null!=(r=null==(n=e.find(e=>null!==e[t]))?void 0:n[t])?r:null})(n,i),t=((e,t)=>{var n,r;return null!=(r=null==(n=[...e].reverse().find(e=>null!==e[t]))?void 0:n[t])?r:null})(n,i);return null===e||null===t?null:l(e===t?e:[e,t],yj(r))}return null;case"conversion":return null}})({stat:r,observations:o,seriesKey:c,metricLabel:s,metricLabelType:u,formatMetricLabel:v}),[v,s,u,o,c,r]),T=(0,M.useMemo)(()=>null===c||"conversion"===r?null:zV({seriesKey:c,formatSeriesLabel:j}),[j,c,r]),D=Ei(S,r,d),I=(0,Z.jk)(D,[{placeholder:(0,Z.S1)(),reactContent:null!=(t=null==T?void 0:T.rich)?t:""}]),[z]=o,E=z?zy({theme:P,legendSymbol:p,vizColor:g(z),opacity:f(z),isDimmed:!1===b(z),highlightStyle:k}):null;return z&&("dashed"===y(z)||"hatched"===m(z))?n="hatched":z&&"dotted"===y(z)&&(n="dotted"),(0,h.jsx)(z7,{size:i,symbol:d&&z&&E&&(0,h.jsx)(s6,{symbol:p,fill:E,pattern:n}),metricValue:L.rich,metricValueStat:(0,h.jsx)(En,{stat:r,size:i,observations:o,comparisonValue:l,metric:a,metricLabel:s,metricLabelType:u,formatTrend:x,formatMetricLabel:v,seriesKey:c}),seriesLabel:I,metricLabel:null==O?void 0:O.rich,isHidden:A,onLegendItemClick:w})},Ei=(e,t,n)=>{switch(t){case"average":return e(n?"graph.headlineMetrics.averageShort":"graph.headlineMetrics.averageLong",{value:(0,Z.S1)()});case"total":return e("graph.headlineMetrics.total",{value:(0,Z.S1)()});case"conversion":return e("graph.headlineMetrics.totalConversionRate",{value:(0,Z.S1)()});case"current":return e("graph.headlineMetrics.current",{value:(0,Z.S1)()})}},Eo=e=>{var{metricSize:t,vizType:n,comboPlotType:r,aestheticMappings:i,stat:o,data:l,comparisonValue:a,getColor:s,getAlpha:u,getFillType:c,getLineType:d,getLegendSymbol:p,isHiddenSeries:g,onLegendItemClick:f,highlightStyle:m}=e,y=sJ(e,["metricSize","vizType","comboPlotType","aestheticMappings","stat","data","comparisonValue","getColor","getAlpha","getFillType","getLineType","getLegendSymbol","isHiddenSeries","onLegendItemClick","highlightStyle"]);let b={getColor:s,getAlpha:u,getFillType:c,getLineType:d};return(0,h.jsx)(zQ,{"aria-label":"Headline metrics",children:(()=>{if(null===o)return null;switch(n){case"line":case"areaStacked":case"bar":case"barStacked":case"barStackedFill":case"column":case"columnStacked":case"columnStackedFill":case"combo":case"scatter":case"funnel":case"bubble":{let{partitionKeys:e,partitionsMap:n}=y_({observations:[...l],group:i.group}),r=e.filter(e=>!(null==g?void 0:g(e))),{x:s,yValue:u}=i;return(0,h.jsx)(h.Fragment,{children:e.map((i,c)=>{var d;let{isHidden:x,canToggleVisibility:C}=zx({seriesKey:i,visibleSeriesLength:r.length,isHiddenSeries:g}),v=C&&{onLegendItemClick:()=>null==f?void 0:f(i)};return(0,h.jsx)(Er,Object.assign({stat:o,size:t,observations:null!=(d=n.get(i))?d:[],comparisonValue:null!=a?a:null,metric:u,metricLabel:s,metricLabelType:l.getType(s),isHidden:x,seriesKey:i,hasMultipleSeries:e.length>=2,legendSymbol:p(c),highlightStyle:m},v,b,y),i)})})}case"heatmap":{let{alpha:e}=i;return void 0===e?null:(0,h.jsx)(Er,Object.assign({stat:o,size:t,observations:[...l],comparisonValue:null,metric:e,seriesKey:null,hasMultipleSeries:!1,legendSymbol:"tile",highlightStyle:m},b,y))}case"pie":case"donut":case"mekko":case"waterfall":return null}})()})},El=p.I4.div(aT(),h_(1.5)),Ea=p.I4.div(aD(),h_(.5)),Es=p.I4.div(aI(),e=>{let{$size:t}=e;return"".concat(t,"px")},e=>{let{$size:t}=e;return"".concat(t,"px")},e=>{let{$stroke:t}=e;return null!=t?t:"transparent"},e=>{let{$fill:t}=e;return null!=t?t:"transparent"}),Eu=p.I4.span(az(),h0,h_(20)),Ec=[1,2,5,10],Ed=(e,t,n)=>({value:e,size:n(t(e)),label:e.toLocaleString()}),Ep=e=>{var t,n,r;let{data:i,formatBubbleSizeValue:o}=e,l=(()=>{let{sizeScale:e}=PD(),{computeBubbleSize:t,minSize:n,maxSize:r}=Ms(),[i,o]=e.domain(),l=((e,t)=>{let n=[],r=Math.floor(Math.log10(t));for(let i=Math.floor(Math.log10(Math.max(e,1)));i<=r;i++){let r=Math.pow(10,i);Ec.forEach(i=>{let o=i*r;o>=e&&o<=t&&n.push(o)})}return n.sort((e,t)=>e-t)})(i,((e,t,n,r)=>Math.min(e.invert((26-n)/(r-n)),t))(e,o,n,r)).map(n=>Ed(n,e,t)),a=0===l.length?[]:l.reduce((e,t)=>{if(0===e.length)return[t];let n=e[e.length-1];return n&&t.size>=1.25*n.size?[...e,t]:e},[]);return 0===a.length?[Ed(i,e,t)]:(e=>e.length<=4?e:[0,Math.floor(e.length/3),Math.floor(2*e.length/3),e.length-1].map(t=>e[t]).filter(Boolean))(a)})(),{getColor:a}=bX(),s=(0,p.DP)(),u=gG(e=>e.computedConfig),c=(0,M.useMemo)(()=>{let[e]=[...i];if(!e)return null;let t=bg({theme:s,color:a(e),isDimmed:!1});return{defaultFill:(0,eJ.Ay)(t).alpha(.5).hex(),defaultStroke:eJ.Ay.mix(s.values.grey0,t,.6).alpha(.5).hex()}},[i,a,s]);if(!l.length||!("sizeProperty"in u)||!u.sizeProperty)return null;let d=null==(t=u.sizeProperty)?void 0:t.label,g=Eh(o,null==(n=l[0])?void 0:n.value),f=Eh(o,null==(r=l.at(-1))?void 0:r.value);return(0,h.jsxs)(El,{children:[(0,h.jsx)(Eu,{children:d}),(0,h.jsxs)(Ea,{children:[l.length>1?(0,h.jsx)("span",{children:g}):null,l.map(e=>(0,h.jsx)(Es,{$size:e.size,$fill:null==c?void 0:c.defaultFill,$stroke:null==c?void 0:c.defaultStroke},e.label)),(0,h.jsx)("span",{children:f})]})]})},Eh=(e,t)=>{var n;if(!t)return"";let r=null==e?void 0:e(t);return null!=(n=null==r?void 0:r.plain)?n:""},Eg=e=>{let{colors:t,maxColors:n=3,backgroundColor:r}=e,i=t.slice(0,n);return(0,h.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 30 22",style:{width:"calc(22px * var(--typography-scale))",height:"calc(16px * var(--typography-scale))"},fill:"none",children:(0,h.jsx)("g",{children:[...i].reverse().map((e,t)=>{let n=8.5*(i.length-1-t);return(0,h.jsx)("rect",{x:n,y:3,width:13.5,height:16,rx:3.8,fill:e,stroke:r,strokeWidth:1.6},t)})})})},Ef=e=>{var{availWidth:t,justify:n="start",align:r="center",direction:i="horizontal",shouldShowValues:o,onLegendItemClick:l,highlightStyle:a,backgroundColor:s}=e,u=sJ(e,["availWidth","justify","align","direction","shouldShowValues","onLegendItemClick","highlightStyle","backgroundColor"]);let{legendPosition:c}=DD(),d=b3("plotHeight"),{allItems:p}=zN(Object.assign(Object.assign({},u),{availWidth:t,availHeight:d,highlightStyle:a,direction:i})),{getColor:g}=bX(),f=(0,M.useMemo)(()=>{let e=[...new Set([...u.data].map(e=>g(e)).filter(e=>!!e))];return 1===e.length?e:Array.from({length:3},(t,n)=>e[n%e.length])},[u.data,g]);if(0===p.length||"top"!==c)return(0,h.jsx)(zc,{});let m=p[0];return m?(0,h.jsx)(zu,{role:"list","aria-label":"Legend",$justify:n,$direction:i,$align:r,children:(0,h.jsx)(zb,Object.assign({legendSymbol:"bar",customLegendSymbol:f.length>1&&(0,h.jsx)(Eg,{colors:f,backgroundColor:s}),highlightStyle:a,shouldShowValue:o},m),null==m?void 0:m.seriesKey)}):null},Em=e=>{let{stat:t,data:n,shouldShowTopLegend:r=!0,vizType:i,aestheticMappings:o,formatBubbleSizeValue:l}=e,{isHiddenSeries:a,onToggleSeriesVisibility:s}=L9(),{isGroupHighlighted:u}=yE(),{getColor:c,getAlpha:d,getFillType:p,getLineType:g}=bX(),f=DL(),m=DA(i,n,o.group),{showLegend:y,legendAvailWidth:b,showHeadlineMetrics:x,resolvedMetricSize:C}=(e=>{var{areHeadlineMetricsSupported:t}=e,n=sJ(e,["areHeadlineMetricsSupported"]);let{stat:r,metricSize:i}=n,o=mu("chartWidth"),{getColor:l,getAlpha:a,getFillType:s,getLineType:u}=bX(),{isGroupHighlighted:c}=yE(),d=yG(),p=DL();return(0,M.useMemo)(()=>{let e={getColor:l,getAlpha:a,getFillType:s,getLineType:u,isGroupHighlighted:c,getLegendSymbol:p};if(o<1)return{showLegend:!1,legendAvailWidth:0,showHeadlineMetrics:!1,resolvedMetricSize:null};if(null===r||!t)return{showLegend:!0,legendAvailWidth:o,showHeadlineMetrics:!1,resolvedMetricSize:null};let{resolvedMetricSize:g,showLegend:f}=(e=>{let{metricSize:t,chartWidth:n,measureHeadlineMetrics:r}=e;if("auto"!==t){let{width:e}=r(t);return{resolvedMetricSize:t,showLegend:e>n}}for(let e of["large","medium","small"]){let{width:t}=r(e);if(t<=n)return{resolvedMetricSize:e,showLegend:!1}}return{resolvedMetricSize:"small",showLegend:!1}})({metricSize:i,chartWidth:o,measureHeadlineMetrics:t=>d((0,h.jsx)(Eo,Object.assign({},e,n,{metricSize:t})))});return{showLegend:f,legendAvailWidth:o,showHeadlineMetrics:!0,resolvedMetricSize:g}},[t,o,a,l,s,u,p,c,d,i,n,r])})(Object.assign({areHeadlineMetricsSupported:Lu({vizType:i,type:"pie"===i||"donut"===i?n.getType(o.value):n.getType(o.yValue),stat:t})},e));return 1>mu("chartWidth")?null:(0,h.jsxs)(zZ,{initial:{opacity:0},animate:{opacity:1},transition:fq,children:[x&&(0,h.jsx)(Eo,Object.assign({getLegendSymbol:f,getColor:c,getAlpha:d,getFillType:p,getLineType:g,isGroupHighlighted:u},e,{metricSize:C,isHiddenSeries:a,onLegendItemClick:s})),(0,h.jsxs)(zX,{children:[m&&y&&(0,h.jsx)(Ef,Object.assign({availWidth:b,justify:Ey(i,x)},e)),!m&&y&&r&&(0,h.jsx)(zK,Object.assign({availWidth:b,justify:Ey(i,x)},e)),"bubble"===i&&(0,h.jsx)(z_,{children:(0,h.jsx)(Ep,{data:n,formatBubbleSizeValue:l})})]})]})},Ey=(e,t)=>u1.includes(e)?t?"end":"center":"start",Eb=p.I4.svg(aE()),Ex=e=>{let{children:t,zIndex:n}=e,r=mu("chartWidth"),i=mu("chartHeight"),o=mu("isPlotMeasured"),l=b3("plotOffsetX"),a=b3("plotOffsetY");return o?(0,h.jsx)(Eb,{viewBox:"0 0 ".concat(r," ").concat(i),style:{zIndex:n},children:(0,h.jsx)("g",{transform:"translate(".concat(l," ").concat(a,")"),children:t})}):null},EC=p.I4.rect(aH(),uv("targetLineColor")),Ev=p.I4.path(aV(),uv("targetLineColor")),Ej=p.I4.text(aF(),sg,uv("grey100")),EA=e=>{let{formattedLabel:t,yPosition:n,renderSymbol:r}=e,i=mh(),{flipAxes:o}=PD(),a=b3("plotWidth"),s=b3("plotHeight"),u=mu("chartHeight"),c=mu("isPlotMeasured"),d=mu("textScale"),p=o?a:s,g=ft(),f=(e=>{let{labelWidth:t,flipAxes:n,hasSymbol:r}=e,i=5+(n?-6.5-t/2:-13),o=16*!!r;return{arrow:{x:-13+t+5+o,y:-10.85,width:12,height:21.6},labelBackground:{x:n?-6.5-t/2:-13,y:-10.85,width:t+10+o,height:21.7},label:{x:i+o,y:0},symbol:{x:i,y:-6,width:12,height:12}}})({labelWidth:g.width,flipAxes:o,hasSymbol:!!r});return null!==n&&n>=0&&n<=p&&!(u<=0)&&c?(0,h.jsx)(Ex,{zIndex:mt.targetLines,children:(0,h.jsxs)(ed.P.g,{initial:!1,animate:{[o?"x":"y"]:n},transition:fq,style:{position:"relative",zIndex:mt.targetLines},children:[(0,h.jsx)(L2,{ruleStyle:"targetLine",orientation:o?l.Y:l.X,origin:0,end:o?s:a,crossOrigin:0,stroke:i.values.targetLineColor}),(0,h.jsxs)("g",{style:{transform:"scale(".concat(d,")"),transformBox:"fill-box",transformOrigin:"left"},children:[!o&&(0,h.jsx)("svg",Object.assign({},f.arrow,{viewBox:"0 0 10 18",children:(0,h.jsx)(Ev,{d:"M2.48935 16.9323L9.07098 9.82964C9.51595 9.34944 9.51504 8.60728 9.0689 8.12818L2.48866 1.06172C1.85811 0.384586 0.974477 0 0.049217 0H0V18H0.0443689C0.972463 18 1.85854 17.6131 2.48935 16.9323Z"})})),(0,h.jsx)(EC,Object.assign({},f.labelBackground,{rx:6})),null==r?void 0:r(f.symbol),(0,h.jsx)(Ej,Object.assign({},f.label,{textAnchor:"start",dominantBaseline:"central",ref:g.setElement,children:t}))]})]},String(o))}):null},Ew={initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:fq},Ek=[...uJ,...uq,"line","combo","areaStacked","waterfall"],EP=e=>{let t,{y:n,group:r=[],seriesKey:i,highlightStyle:o,formatLabel:l=up}=e,a=mh(),s=gG(e=>e.computedConfig.type),{getColor:u,getAlpha:c}=bX(),{getYAxisPosition:d}=PD(),{isGroupHighlighted:p}=yE(),{visibleObservations:g}=L9(),f=DL(),{partitionKeys:m,partitionsMap:y}=y_({observations:g,group:r}),b=(0,M.useMemo)(()=>{var e,t,n;return 1===m.length?null!=(t=y.get(null!=(e=m[0])?e:""))?t:[]:null!==i&&y.has(i)&&null!=(n=y.get(i))?n:[]},[m,y,i]),x=(0,M.useMemo)(()=>zB(b,n),[b,n]),C=null!==x&&Ek.includes(s),v=d(x),j=l(x);if(i){let e=f(m.indexOf(i)),[n]=b,r=n?zy({theme:a,legendSymbol:e,vizColor:u(n),opacity:c(n),isDimmed:!1===p(n),highlightStyle:o}):"";t=t=>(0,h.jsx)(s6,Object.assign({symbol:e,fill:r},t))}return(0,h.jsx)(eg.N,{children:C&&(0,h.jsx)(ed.P.g,Object.assign({},Ew,{children:(0,h.jsx)(EA,{formattedLabel:"Average: ".concat(j.plain),yPosition:v,renderSymbol:t})}))})},ES=(e,t)=>{let n=Object.assign({},e);for(let r in t)void 0!==t[r]&&t[r]!==e[r]&&(n[r]=t[r]);return n},EL=(0,M.createContext)(null),EM=uD(EL,"GraphProvider"),EO=e=>{let{config:t,onChange:n,children:r,graphStateRef:i}=e,o=gN(t),l=(0,M.useCallback)(e=>{let t=((e,t)=>{var n,r,i;let o=Object.assign({},e);if(void 0!==o.data){let e=((e,t)=>{var n;let r=e.computedProperties.find(e=>!0!==e.isHidden&&!ck(e.dataType.type));return hU(null!=(n=t.annotations)?n:e.annotations,t.data||e.data,null==r?void 0:r.key)})(t,{annotations:null!=(n=o.annotations)?n:t.annotations,data:null!=(r=o.data)?r:t.data});o=ES(o,{annotations:e})}let l=null==(i=o.visualisationConfig)?void 0:i.type;return l&&l!==t.computedConfig.type&&(o=ES(o,((e,t,n)=>{if(hS(n,t.properties)){let t=hP.find(t=>t.config.type===e);if(t)return{titleDocument:t.titleDocument,datasetConfig:t.datasetConfig,data:t.data}}return{}})(l,t.datasetConfig,t.data))),o})("function"==typeof e?e(o.current,i.current):e,i.current);Object.keys(t).length>0&&(null==n||n(t,o.current,i.current))},[o,i,n]);return(0,h.jsx)(EL.Provider,{value:l,children:r})},ET=e=>{let{colorScheme:t,graphBackground:n,shouldTintBackground:r,vizColor:i}=e;return r?uk(n,i,"dark"===t?.1:.05):n};class ED extends M.Component{static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){var n,r;null==(r=(n=this.props).onError)||r.call(n,{error:e,errorInfo:t,graphProviderProps:this.props.graphProviderProps})}render(){let{error:e}=this.state,{children:t,graphProviderProps:n,fallbackComponent:r}=this.props;if(e){if(r)return(0,M.createElement)(r,{error:e,graphProviderProps:n},t);throw e}return t}constructor(e){super(e),this.state={error:null}}}let EI=[...uJ,...uq,"line","areaStacked","combo","waterfall"],Ez=e=>{let{children:t,brandKit:n,parserName:r,onChange:i,config:o={},customPalettes:l,enableLegacySingleBarColorMode:a=!1,canvasColorToVariableName:s=e=>"graphy-canvas-".concat(e),theme:u=ge,i18nOverrides:c}=e,d=(e=>{var t,n,r,i,o,l,a,s,u;return Object.assign(Object.assign({},e),{data:null!=(t=e.data)?t:[],datasetConfig:null!=(n=e.datasetConfig)?n:{isDataHorizontal:!1,properties:[]},numberFormat:null!=(r=e.numberFormat)?r:{decimalPlaces:"auto",abbreviation:"auto"},annotations:null!=(i=e.annotations)?i:[],customAppearanceConfig:null!=(o=e.customAppearanceConfig)?o:Lj(),visualisationConfig:null!=(l=e.visualisationConfig)?l:hi(),titleDocument:e.titleDocument&&null!=(a=d4.safeParse(e.titleDocument).data)?a:S7,caption:e.caption&&null!=(s=d4.safeParse(e.caption).data)?s:S4,themeOverrides:null!=(u=e.themeOverrides)?u:{}})})(o),{data:p,datasetConfig:g,numberFormat:f,annotations:m,customAppearanceConfig:y,visualisationConfig:b,titleDocument:x,caption:C,sourceLabel:v,sourceUrl:j,fontList:A,themeOverrides:w}=d,k=(0,M.useMemo)(()=>Object.assign(Object.assign({},u),{values:Object.assign(Object.assign({},u.values),w)}),[u,w]),P=(0,M.useMemo)(()=>p$(b),[b]),S=(0,M.useMemo)(()=>Object.assign(Object.assign({},g),{properties:g.properties.filter(e=>!e.isHidden)}),[g]),L=(0,M.useMemo)(()=>(e=>{let{customAppearanceConfig:t}=e,n=t;return(e=>{var t,n,r,i,o;return(null==e?void 0:e.borderColor)?e:Object.assign(Object.assign({},e),{borderColor:null!=(o=null!=(n=null!=(t=null==e?void 0:e.borderStyleName)?t:null==e?void 0:e.customBorderStyle)?n:null==(i=null==(r=null==e?void 0:e.seriesConfig)?void 0:r.series1)?void 0:i.color)?o:gg,borderStyleName:null,customBorderStyle:void 0})})(n=(e=>{var t;return void 0!==(null==e?void 0:e.borderStroke)?e:"none"===(null==e?void 0:e.borderStyle)?Object.assign(Object.assign({},e),{borderStroke:dg.stroke,borderType:dm.enum.grey,borderColor:void 0}):("custom"===(null==e?void 0:e.theme)||"brandKit"===(null==e?void 0:e.theme)||"customPalette"===(null==e?void 0:e.theme))&&(null==(t=null==e?void 0:e.customBorderStyle)?void 0:t.startsWith("#"))?Object.assign(Object.assign({},e),{borderStroke:dg.border,borderType:dm.enum.custom,borderColor:null==e?void 0:e.customBorderStyle}):(null==e?void 0:e.borderStyle)===dm.enum.gradient||(null==e?void 0:e.borderStyle)===dm.enum.solid||(null==e?void 0:e.borderStyle)===dm.enum.custom?Object.assign(Object.assign({},e),{borderStroke:dg.border,borderType:null==e?void 0:e.borderStyle,borderColor:void 0}):Object.assign(Object.assign({},e),{borderStroke:dg.stroke,borderType:dm.enum.grey,borderColor:void 0})})(n))})({customAppearanceConfig:y}),[y]),O=(0,M.useMemo)(()=>PX(S.properties,p,P.locale,P.type),[S.properties,p,P.locale,P.type]),T=(0,M.useMemo)(()=>P1(O,S,P.type),[O,S,P.type]),D=(0,M.useMemo)(()=>((e,t)=>{let{type:n,comboPlotType:r,propertyMapping:i,view:o,computedProperties:l}=t;return Object.assign(Object.assign({},e),(e=>{var t,n,r,i;let{type:o,comboPlotType:l,propertyMapping:a,view:s,computedProperties:u}=e,c=((e,t)=>t.filter(t=>e.properties.some(e=>e.originalKey===t.key)).map(t=>{var n,r;let i=e.properties.find(e=>e.originalKey===t.key);if(!i)throw Error("View property not found for computed property: ".concat(t.key));return ck(t.dataType.type)&&i.isDerived&&i.aggregation?Object.assign(Object.assign({},t),{dataType:{type:gP.Decimal},label:PV[i.aggregation],defaultLabel:PV[i.aggregation]}):!ck(t.dataType.type)&&(null==(n=e.groupBy)?void 0:n.timeUnit)&&(null==(r=e.groupBy)?void 0:r.key)===t.key?Object.assign(Object.assign({},t),{dataType:{type:hJ(t.dataType.type,e.groupBy.timeUnit)}}):t}))(s,u);switch(o){case"bar":case"barStacked":case"barStackedFill":case"column":case"columnStacked":case"columnStackedFill":case"line":case"areaStacked":case"mekko":case"heatmap":{let{xAxisProperties:e,yAxisProperties:t}=PW(c),n=PU({mainAxisColumnMapping:null==a?void 0:a.mainAxisColumn,computedProperties:u,defaultProperties:e}),r=PG({computedProperties:u,columnMappings:null==a?void 0:a.crossAxisColumns,defaultProperties:t});return{type:o,xAxisProperties:n,yAxisProperties:r,isTimeseriesData:PB(n),dataContainsPercentages:PF(r),isValidChart:n.length>0&&r.length>0}}case"combo":{let{xAxisProperties:e,yAxisProperties:t}=PW(c),n=PU({mainAxisColumnMapping:null==a?void 0:a.mainAxisColumn,computedProperties:u,defaultProperties:e}),r=(e=>{var t,n;let r=(t=e.defaultProperties.length,n=e.comboPlotType,e=>"lines"===n||e===t-1?"line":"bar");return e.columnMappings?e.columnMappings.reduce((t,n,i)=>{var o;let l=PR(e.computedProperties,n.key);return l&&t.push(Object.assign(Object.assign({},l),{shape:null!=(o=n.shape)?o:r(i)})),t},[]):e.defaultProperties.map((e,t)=>Object.assign(Object.assign({},e),{shape:r(t)}))})({comboPlotType:l,columnMappings:null==a?void 0:a.crossAxisColumns,computedProperties:u,defaultProperties:t});return{type:o,xAxisProperties:n,yAxisProperties:r,isTimeseriesData:PB(n),dataContainsPercentages:PF(r),isValidChart:n.length>0&&r.length>0}}case"funnel":case"waterfall":{let{xAxisProperties:e,yAxisProperties:t}=PW(c),n=PU({mainAxisColumnMapping:null==a?void 0:a.mainAxisColumn,computedProperties:u,defaultProperties:e}),r=PG({computedProperties:u,columnMappings:null==a?void 0:a.crossAxisColumns,defaultProperties:t});return{type:o,yAxisProperties:r[0]?[r[0]]:[],xAxisProperties:n[0]?[n[0]]:[],isTimeseriesData:PB(n),dataContainsPercentages:PF(r),isValidChart:n.length>0&&r.length>0}}case"pie":case"donut":{let{xAxisProperties:e,yAxisProperties:t}=PW(c),n=PR(u,null==a?void 0:a.labelColumnKey),r=n?[n]:e,i=PG({computedProperties:u,columnMappings:null==a?void 0:a.crossAxisColumns,defaultProperties:t});return{type:o,labelProperty:r[0],valueProperty:i[0],isTimeseriesData:PB(r),dataContainsPercentages:PF(i),isValidChart:!!(r[0]&&i[0])}}case"scatter":{let e=PY(c,"categorical"),r=PY(c,"numerical"),i=r[0]?[r[0]]:[],l=PU({mainAxisColumnMapping:null==a?void 0:a.mainAxisColumn,computedProperties:u,defaultProperties:i}),s=[...null!=(t=r.slice(1))?t:[]],d=PG({computedProperties:u,columnMappings:null==a?void 0:a.crossAxisColumns,defaultProperties:s});return{type:o,xAxisProperties:l,yAxisProperties:d,labelProperty:null!=(n=PR(u,null==a?void 0:a.labelColumnKey))?n:e[0],isTimeseriesData:PB(l),dataContainsPercentages:PF(d),isValidChart:r.length>=2}}case"bubble":{let e=PY(c,"categorical"),t=PY(c,"numerical"),n=t[0]?[t[0]]:[],l=PU({mainAxisColumnMapping:null==a?void 0:a.mainAxisColumn,computedProperties:u,defaultProperties:n}),s=t[1]?[t[1]]:[],d=PG({computedProperties:u,columnMappings:null==a?void 0:a.crossAxisColumns,defaultProperties:s});return{type:o,xAxisProperties:l,yAxisProperties:d,sizeProperty:null!=(r=PR(u,null==a?void 0:a.sizeColumnKey))?r:t[2],labelProperty:null!=(i=PR(u,null==a?void 0:a.labelColumnKey))?i:e[0],isTimeseriesData:PB(l),dataContainsPercentages:PF(d),isValidChart:t.length>=3}}case"table":{let e=PY(c,"categorical"),t=PY(c,"numerical");return{type:o,columns:c,isTimeseriesData:PB(e),dataContainsPercentages:PF(t),isValidChart:c.length>0}}}})({type:n,comboPlotType:r,propertyMapping:i,view:o,computedProperties:l}))})(P,{type:P.type,comboPlotType:P.comboPlotType,propertyMapping:P.propertyMapping,view:T.view,computedProperties:O}),[T.view,P,O]),I=(0,M.useMemo)(()=>Lx(p,D,O,T.view),[p,D,O,T.view]),z=(0,M.useMemo)(()=>yn(Object.assign(Object.assign({},L),{colorScheme:k.colorScheme,brandKit:n,vizType:D.type,customPalettes:l}),(e=>{let{chartData:t,computedConfig:n,isCategoricalSingleAxisChart:r}=e;return Math.max(((e,t,n)=>{switch(e.type){case"bar":case"barStacked":case"barStackedFill":case"column":case"columnStacked":case"columnStackedFill":return((e,t,n)=>{var r,i;let o=e.yAxisProperties.length,l=null==(r=e.xAxisProperties)?void 0:r[0];if(!l)return o;let a=l.key,s=null==(i=l.dataType)?void 0:i.type;return 1===o&&(cA(s)||ck(s))?1:n?new Set(t.map(e=>{var t;return null!=(t=e[a])?t:null})).size:o})(e,t,n);case"pie":case"donut":return((e,t)=>{var n;let r=null==(n=e.labelProperty)?void 0:n.key;return r?new Set(t.map(e=>{var t;return null!=(t=e[r])?t:null})).size:1})(e,t);case"scatter":case"bubble":case"mekko":case"line":case"areaStacked":case"combo":return e.yAxisProperties.length;default:return 1}})(n,t,r),1)})({computedConfig:D,chartData:I,isCategoricalSingleAxisChart:hV(D)}),hV(D),a),[L,k.colorScheme,n,D,l,I,a]),{fillTypes:E,lineTypes:H}=((e,t)=>{let n=(0,M.useCallback)(n=>EI.includes(e.type)?"waterfall"===e.type?gm.map(e=>{var r,i,o;return null!=(o=null==(i=null==(r=t.seriesConfig)?void 0:r[e])?void 0:i[n])?o:"solid"}):e.yAxisProperties.reduce((e,r,i)=>{var o,l,a;let{isHidden:s}=r;if(s)return e;let u=gf[i];return[...e,null!=(a=null==(l=null==(o=t.seriesConfig)?void 0:o[u])?void 0:l[n])?a:"solid"]},[]):[],[t,e]);return{fillTypes:(0,M.useMemo)(()=>n("fillType"),[n]),lineTypes:(0,M.useMemo)(()=>n("lineType"),[n])}})(D,L),V=z[0],F=(0,M.useMemo)(()=>ET({colorScheme:k.colorScheme,graphBackground:k.values.graphBackground,shouldTintBackground:L.shouldTintBackground,vizColor:V}),[L.shouldTintBackground,V,k.colorScheme,k.values.graphBackground]),B=(0,M.useMemo)(()=>({computedProperties:O,computedDataView:T,computedConfig:D,chartData:I,vizPalette:z,backgroundColor:F,annotations:m,appearance:L,visualisationConfig:b,caption:C,customPalettes:l,customAppearance:y,datasetConfig:g,data:p,titleDocument:x,fillTypes:E,lineTypes:H,parserName:r,numberFormat:f,sourceLabel:v,sourceUrl:j,enableLegacySingleBarColorMode:a,canvasColorToVariableName:s,theme:k}),[O,T,D,I,z,F,m,L,b,C,l,y,g,p,x,E,H,r,f,v,j,a,s,k]),R=gN(B),Y=(0,M.useMemo)(()=>Object.assign(Object.assign({},B),{ref:R}),[R,B]),G=(0,ti.QC)(P.locale);return(0,h.jsx)(PH,{children:(0,h.jsx)(xh,{children:(0,h.jsx)(Z.Dk,{locale:G,i18nOverrides:c,children:(0,h.jsx)(EO,{config:d,graphStateRef:R,onChange:i,children:(0,h.jsx)(gR.Provider,{value:Y,children:(0,h.jsx)(mi,{value:A,children:t})})})})})})},EE=e=>{var{onError:t,fallbackComponent:n}=e,r=sJ(e,["onError","fallbackComponent"]);return(0,h.jsx)(ED,{onError:t,fallbackComponent:n,graphProviderProps:r,children:(0,h.jsx)(Ez,Object.assign({},r))})},EH=p.I4.div(aB()),EV=p.I4.div(aR()),EF=p.I4.div(aY()),EB=(0,p.I4)(ed.P.div)(aG(),s_.popover),ER=p.I4.div(aU()),EY=p.I4.div(aW()),EG=p.I4.svg(aN()),EU=e=>{let{strokeWidth:t,hasRoundedCorners:n,defaultRadius:r}=e;if(!n)return{innerRadius:0,outerRadius:0};let i=r;i>t&&(i=t);let o=Math.max(r,i),l=2*o;return o>t&&(l=o+t),{innerRadius:o,outerRadius:l}},EW=e=>{let{hasRoundedCorners:t,style:n,strokeWidth:r}=e,{innerRadius:i,outerRadius:o}=EU({strokeWidth:r,hasRoundedCorners:t,defaultRadius:8}),l=(0,M.useId)(),{width:a,height:s,setElement:u}=ft(),c=(0,eh.K)(),d=(0,M.useRef)(t),p=d.current!==t;return(0,M.useEffect)(()=>{d.current=t},[t]),(0,h.jsx)(ER,{ref:u,className:p||c?void 0:"transition",children:(0,h.jsxs)(EG,{viewBox:"0 0 ".concat(a," ").concat(s),width:a,height:s,children:[(0,h.jsx)("defs",{children:(0,h.jsx)("mask",{id:l,children:i!==o?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("rect",{x:0,y:0,width:a,height:s,rx:o,fill:"white"}),(0,h.jsx)("rect",{x:r,y:r,width:a-2*r,height:s-2*r,rx:i,fill:"black"})]}):(0,h.jsx)("rect",{x:r/2,y:r/2,width:a-r,height:s-r,strokeWidth:r,stroke:"white",rx:i,fill:"none"})})}),(0,h.jsx)("foreignObject",{x:"0",y:"0",width:a,height:s,mask:"url(#".concat(l,")"),children:(0,h.jsx)(EY,{style:n})})]})})},EN=e=>{let t,n;return"aspectRatio"in e?"intrinsicWidth"in e?n=(t=e.intrinsicWidth)/e.aspectRatio:t=(n=e.intrinsicHeight)*e.aspectRatio:(t=e.intrinsicWidth,n=e.intrinsicHeight),{width:t,height:n}},EK=(e,t)=>{switch(e.mode){case"fixed":return{width:e.width,height:e.height};case"responsive":return{width:t.width,height:t.height};case"keepAspectRatio":return EN(e)}},EZ=p.I4.div(aK(),h_(1)),EX=p.I4.div(a_(),e=>{let{$hasRoundedCorners:t,$borderStrokeWidth:n=0}=e;return"".concat(EU({strokeWidth:n,hasRoundedCorners:t,defaultRadius:8}).innerRadius,"px")},uv("textPrimary"),e=>{let{$hasCheckeredBackground:t,$backgroundColor:n}=e;return t?(0,p.AH)(aZ(),uv("grey100"),ye(2)):(0,p.AH)(aX(),n)}),E_=p.I4.div(a1(),e=>{let{$textScale:t}=e;return t},e=>{let{$bodyFont:t}=e;return dk(t)},e=>{let{$bodyTextColor:t}=e;return null!=t?t:"inherit"},e=>{let{$headingFont:t}=e;return dk(t)},e=>{let{$headingTextColor:t}=e;return null!=t?t:"inherit"},hW,EX,EH,EZ,e=>{let{$hasRoundedCorners:t,$hasBorder:n,$borderStrokeWidth:r=0}=e;return n&&(0,p.AH)(aQ(),Math.max(0,r),t?"hidden":"visible")},e=>{let{$hasBorder:t,$isExport:n,$borderStrokeWidth:r}=e;return t&&!r&&!n&&(0,p.AH)(aJ(),EX,uL,uv("grey80"),uM,uv("grey70"))},e=>{let{$appearanceVariant:t,$hasBorder:n}=e;return"active"===t&&(0,p.AH)(aq(),n?"2px":"3px",uv("grey60"))},e=>{let{$isEditable:t}=e;return!t&&(0,p.AH)(a$())},h_(4)),EQ=M.createContext(null),EJ=uD(EQ,"VisualisationLayout.Root"),Eq=()=>(0,M.useContext)(EQ),E$={mode:"fixed",width:cI.width,height:cI.height},E1=[[400,.8],[600,.9]],E0=(0,M.forwardRef)(function(e,t){var n,r;let{borderStrokeWidth:i=dg.stroke,borderStyles:o,appearanceVariant:l="default",backgroundColor:a,vizType:s,isEditable:u,children:c,sizing:d=E$,appearanceTheme:p,appearancePalette:g,textScale:f="1",font:m,onResize:y,isExport:b}=e,x=gG(e=>e.titleDocument),C=null!==o,v=gG(e=>!1!==e.appearance.hasRoundedCorners),j=ft({onResize:y}),{setElement:A}=j,w=sJ(j,["setElement"]),k=g4([A,t]),P=mr(),{width:S,height:L}=(0,M.useMemo)(()=>EK(d,w),[w,d]),O=(0,M.useMemo)(()=>{for(let[e,t]of E1)if(S<=e)return t;return 1},[S]),T=(0,M.useMemo)(()=>({width:S,vizType:s,hasGradientBorder:C,borderStrokeWidth:i,isEditable:u,chartHeight:L}),[i,C,L,u,s,S]);return(0,h.jsx)(EQ.Provider,{value:T,children:(0,h.jsxs)(E_,{ref:k,role:"figure","aria-label":Lr(x),"data-test-theme":p,"data-test-palette":g,$hasRoundedCorners:v,$borderStrokeWidth:i,$hasBorder:i>0,$appearanceVariant:l,$textScale:Number(f)*O,$bodyFont:null==(n=P.find(e=>{let{id:t}=e;return t===m.body.fontId}))?void 0:n.fontFamily,$headingFont:null==(r=P.find(e=>{let{id:t}=e;return t===m.heading.fontId}))?void 0:r.fontFamily,$bodyTextColor:m.body.color,$headingTextColor:m.heading.color,$isEditable:u,style:"fixed"===d.mode?{width:d.width,height:d.height}:void 0,$isExport:b,children:[(0,h.jsx)(EX,{$borderStrokeWidth:i,$hasRoundedCorners:v,$backgroundColor:a,$hasCheckeredBackground:u&&"transparent"===a,style:{padding:S<500?"1.6em":"2.4em"},children:c}),i>0&&(0,h.jsx)(EW,{style:null!=o?o:void 0,strokeWidth:i,hasRoundedCorners:v})]})})}),E2=(0,M.forwardRef)(function(e,t){var n,r;let i=(e=>{let t=ft();return(0,M.useMemo)(()=>{if("keepAspectRatio"!==e.mode)return{setContainer:t.setElement,canRender:!1,outerStyles:{},innerStyles:{}};let n=EK(e,{width:0,height:0}),r=t.width>0&&n.width>0?t.width/n.width:1;return{setContainer:t.setElement,canRender:!t.isDefault,outerStyles:Object.assign({width:"100%"},t.isDefault?{aspectRatio:"".concat(n.width," / ").concat(n.height)}:{height:n.height*r}),innerStyles:{transformOrigin:"top left",transform:"scale(".concat(r,")"),width:n.width,height:n.height}}},[e,t.width,t.setElement,t.isDefault])})(null!=(n=e.sizing)?n:E$);return"keepAspectRatio"===(null==(r=e.sizing)?void 0:r.mode)?(0,h.jsx)("div",{ref:i.setContainer,style:i.outerStyles,children:i.canRender&&(0,h.jsx)("div",{style:i.innerStyles,children:(0,h.jsx)(E0,Object.assign({},e,{ref:t}))})}):(0,h.jsx)(E0,Object.assign({},e,{ref:t}))}),E5=e=>{let{children:t}=e;return(0,h.jsx)(EZ,{children:t})},E3=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=EJ();return{typographyVariant:E7(t.width-(e?2*t.borderStrokeWidth:0))}},E7=e=>e<=260?"titleSmallest":e<=320?"titleSmaller":"titleSmall",E9={Root:E2,Content:e=>{let{children:t,toolbar:n}=e,{hasFocus:r,focusBindings:i}=g_(),{hasMouseOver:o,mouseOverTargetProps:l}=g2(),a=!!(n&&(o||r)),{chartHeight:s}=EJ();return(0,h.jsxs)(EH,Object.assign({},i,l,{style:{height:s},children:[(0,h.jsx)(EV,{children:(0,h.jsx)(EF,{children:t})}),(0,h.jsx)(eg.N,{children:a?(0,h.jsx)(EB,{style:{x:"-50%",y:"-140%"},initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.9},transition:{duration:.15},children:n}):null})]}))}},E4=p.I4.div(a0(),h_(2),h_(2)),E6=p.I4.div(a2(),mJ,uv("textSecondary")),E8=p.I4.div(a5(),m1,uv("textDisabled")),He=e=>{let{title:t,message:n}=e;return(0,h.jsxs)(E4,{children:[(0,h.jsx)(E6,{children:t}),n&&(0,h.jsx)(E8,{children:n})]})},Ht=e=>{let{isEditable:t,chartData:n,config:r,children:i}=e;return hL(n,r)?(0,h.jsx)(He,{title:"Cannot render chart: too much data",message:t?"Try filtering or grouping the data, using a table visualization or importing a smaller dataset.":void 0}):Hn(n,r)?i:(0,h.jsx)(ef.x,{reducedMotion:"always",children:i})},Hn=(e,t)=>hM(e,t)<=cz[t.type]/2,Hr=function(e,t,n){var r,i;let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(o>=10)return n;let l=t.match(/var\(([^,)]+)(?:,\s*(.+))?\)/),a=null==(r=null==l?void 0:l[1])?void 0:r.trim();if(a){let t=null==(i=null==l?void 0:l[2])?void 0:i.trim(),r=getComputedStyle(e||document.documentElement).getPropertyValue(a).trim();return r?Hr(e,r,n,o+1):t?Hr(e,t,n,o+1):(console.warn('[Graphy] CSS variable "'.concat(a,'" is not defined.')),n)}return t},Hi=()=>{let e=(0,Z.s9)();return(()=>{let e=gG(e=>e.vizPalette);return gG(e=>e.computedProperties.filter(e=>ck(e.dataType.type))).map((t,n)=>({property:t,color:e[n%e.length]}))})().map(t=>{let{property:n,color:r}=t;return{label:n.label||n.getDefaultLabel(e),value:r}})},Ho=()=>{let e=Hi(),{editor:t}=kG(),n=gG(e=>e.caption);if(!(null==t?void 0:t.isEditable)){let e=kX(n);if(!(null==e?void 0:e.trim()))return null}return(0,h.jsx)(kW,{seriesColorOptions:e})},Hl=p.I4.div(a3(),hW,h_(1),uv("textSecondary")),Ha=p.I4.span(a7(),m3),Hs=p.I4.span(a9(),m3),Hu=(0,p.I4)(Hl).attrs({as:"a"})(a4(),Hs,m7),Hc=()=>{let e=gG(e=>e.sourceLabel),t=gG(e=>e.sourceUrl),n=e||(e=>{try{return new URL(e).hostname}catch(t){return e}})(null!=t?t:"");return t?(0,h.jsxs)(Hu,{href:t,target:"_blank",rel:"noopener noreferrer",children:[(0,h.jsx)(Ha,{children:"Source:"}),(0,h.jsx)(Hs,{children:n})]}):(0,h.jsxs)(Hl,{children:[(0,h.jsx)(Ha,{children:"Source:"}),(0,h.jsx)(Hs,{children:n})]})},Hd=e=>{let{isEditable:t=!0}=e,n=gG(e=>e.caption),r=gG(e=>e.appearance.shouldHideCaption),i=gG(e=>{var t;return null==(t=e.appearance.shouldHideSourceSection)||t});return(0,h.jsxs)(E5,{children:[i?null:(0,h.jsx)(Hc,{}),r?null:(0,h.jsx)(kU,{placeholder:"Add caption",content:n,isEditable:t,children:(0,h.jsx)(Ho,{})})]})},Hp=p.I4.div(se(),e=>m8[e.$headingVariant],e=>e.$accessoryWidth?e.$accessoryWidth+16:0,e=>e.$hideWhenEmpty?"none":"block",uv("grey90"),e=>{let{$shouldHideTitle:t}=e;return t&&(0,p.AH)(a6(),kl)},e=>{let{$shouldHideSubtitle:t}=e;return t&&(0,p.AH)(a8(),kl)}),Hh=p.I4.div(st()),Hg=e=>{var t;let{accessory:n,titleDocument:r,isEditable:i,onChange:o,editorDeps:l}=e,a=ft(),s=Hi(),u=gG(e=>e.appearance.shouldHideTitle),c=gG(e=>e.appearance.shouldHideSubtitle),d=E3(),p=S3({isEditable:i,onUpdate:e=>{let t=e.editor.getJSON();null==o||o(t)},content:r},l),{title:g,subtitle:f}=Ln(r),m=!(null==g?void 0:g.trim()),y=!(null==f?void 0:f.trim()),b=u||!i&&m,x=c||!i&&y;if(b&&x)return null;let C=null!=(t=a.width)?t:void 0;return(0,h.jsxs)(Hp,{$headingVariant:d.typographyVariant,$accessoryWidth:C,$shouldHideTitle:b,$shouldHideSubtitle:x,style:{minHeight:a.height>0?a.height:void 0},children:[(0,h.jsx)(S$,{editor:p,seriesColorOptions:s}),n?(0,h.jsx)(Hh,{ref:a.setElement,children:n}):null]})},Hf=e=>{let{error:t,graphProps:n}=e;(0,M.useEffect)(()=>{let e=Error("Graph error: ".concat(t.message));e.name="GraphError",e.stack=t.stack,console.error(e)},[t]);let r=n.sizing||E$,i="100%",o="100%";if("fixed"===r.mode)i="".concat(r.width,"px"),o="".concat(r.height,"px");else if("keepAspectRatio"===r.mode){let e=EN(r);i="".concat(e.width,"px"),o="".concat(e.height,"px")}return(0,h.jsx)("div",{style:{width:i,height:o,background:uv("graphBackground")},children:(0,h.jsx)(He,{title:"Unable to render chart"})})};class Hm extends M.Component{static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){var n,r;null==(r=(n=this.props).onError)||r.call(n,{error:e,errorInfo:t,graphProps:this.props.graphProps})}render(){let{error:e}=this.state,{children:t,graphProps:n,fallbackComponent:r=Hf}=this.props;return e?(0,M.createElement)(r,{error:e,graphProps:n},t):t}constructor(e){super(e),this.state={error:null}}}let Hy=(e,t,n)=>ck(e)?fl(t)-fl(n):cv(e)?fo(t).localeCompare(fo(n)):cA(e)?fa(t).getTime()-fa(n).getTime():e===gP.Boolean?!0===fs(t)?1:-1:0,Hb=(e,t,n)=>-1*Hy(e,t,n),Hx=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Hy,i=e[t];if(!i)throw Error("Cannot find values for variable ".concat(t,"."));let o=[...i.keys()];return o.sort((e,t)=>{let o=i[e],l=i[t];return void 0!==o&&void 0!==l&&null!==o&&null!==l?r(n,o,l):0}),Object.fromEntries(Object.entries(e).map(t=>{let[n,r]=t;return[n,r.map((t,r)=>{var i,l;let a=null!=(i=o[r])?i:-1;return null==(l=e[n])?void 0:l[a]})]}))};class HC{clone(){let e=new HC;for(let[t,n]of(s$(e,c,{size:sq(this,c,"f").size,columns:Object.assign({},sq(this,c,"f").columns),values:{}},"f"),Object.entries(sq(this,c,"f").values)))sq(e,c,"f").values[t]=[...n];return e}add(e){let{variableKey:t,type:n,values:r}=e;if(sq(this,c,"f").columns[t])throw Error("Column already exists for variable ".concat(t,"."));return s$(this,c,{size:Math.max(sq(this,c,"f").size,r.length),columns:Object.assign(Object.assign({},sq(this,c,"f").columns),{[t]:{type:n}}),values:Object.assign(Object.assign({},sq(this,c,"f").values),{[t]:r})},"f"),this}appendValues(e,t){if(!sq(this,c,"f").columns[e])throw Error("No column exists for variable ".concat(e,"."));let n=[...this.getValues(e),...t];return s$(this,c,Object.assign(Object.assign({},sq(this,c,"f")),{size:Math.max(sq(this,c,"f").size,n.length),values:Object.assign(Object.assign({},sq(this,c,"f").values),{[e]:n})}),"f"),this}getType(e){let t=sq(this,c,"f").columns[e];if(void 0===t)throw Error("Cannot find column for variable ".concat(e,"."));return t.type}getVariableKeys(){return Object.keys(sq(this,c,"f").columns)}getValues(e){let t=sq(this,c,"f").values[e];if(void 0===t)throw Error("Cannot retrieve values for unknown variable ".concat(e,"."));return t}exists(e){return void 0!==sq(this,c,"f").columns[e]}sortBy(e,t){return s$(this,c,Object.assign(Object.assign({},sq(this,c,"f")),{values:Hx(sq(this,c,"f").values,e,this.getType(e),t)}),"f"),this}[(c=new WeakMap,Symbol.iterator)](){let e=0,t=Object.keys(sq(this,c,"f").values);return{next:()=>{if(e{var r,i;return Object.assign(Object.assign({},t),{[n]:null!=(i=null==(r=sq(this,c,"f").values[n])?void 0:r[e])?i:null})},{});return e++,{value:n,done:!1}}return{value:null,done:!0}}}}constructor(){c.set(this,{size:0,columns:{},values:{}})}}let Hv=()=>new HC,Hj="value",HA="label",Hw="highlight",Hk=p.I4.div(sn(),m_,uv("textPrimary")),HP=e=>{var t;let{valueProperty:n,formatter:r,align:i,totalValue:o}=e,l=null!=(t=null==n?void 0:n.key)?t:"__value";return(0,h.jsx)(Hk,{style:{textAlign:i},children:r(o,l).rich})},HS=e=>{let{vizType:t,addons:n=[],annotationsAddonProps:r,backgroundColor:i,chartData:o,font:l,footerContent:a,headlineMetric:s,headlineMetricSize:u,highlightStyle:c,isEditable:d,isInteractive:p=!0,labelProperty:g,legendPosition:f="top",numberFormat:m,plotEffect:y,shouldShowCategoryLabels:b,shouldShowDataLabels:x,showPercentageLabels:C,textScale:v,titleContent:j,totalPosition:A,valueProperty:w,vizPalette:k,pointAnnotationsAddonProps:P}=e,S=(0,M.useMemo)(()=>{var e,t,n;return(e=>{var t,n;let{chartData:r=[],valueProperty:i,labelProperty:o,highlightAnnotations:l,getDataPointId:a}=e,s=i?i.key:"__value",u=o?o.key:"__label",c=null!=(t=null==i?void 0:i.dataType.type)?t:gP.Decimal,d=null!=(n=null==o?void 0:o.dataType.type)?n:gP.Text,p=Hv().add({variableKey:"id",type:gP.Text,values:r.map((e,t)=>dT({rowIndex:t,propertyKey:s}))}).add({variableKey:Hj,type:c,values:r.map(e=>{var t;return i&&null!=(t=e[s])?t:null})}).add({variableKey:HA,type:d,values:r.map(e=>{var t;return o&&null!=(t=e[u])?t:null})}),h=new Map,g=l.filter(e=>"x-value"===e.config.highlight);return r.forEach((e,t)=>{if(!o||!i)return;let n=e[u];null!=n&&(h.has(n)||h.set(n,!1),g.some(e=>a(e)===dT({rowIndex:t,propertyKey:s}))&&h.set(n,!0))}),p.add({variableKey:Hw,values:r.map(e=>{var t;if(!o)return!1;let n=e[u];return null!=(t=void 0!==n&&h.get(n))&&t}),type:gP.Boolean}),{data:p,aestheticMappings:{id:"id",highlight:Hw,value:Hj,label:HA,color:HA}}})({chartData:o,valueProperty:w,labelProperty:g,getDataPointId:null!=(e=null==P?void 0:P.getDataPointId)?e:()=>"",highlightAnnotations:null!=(n=null==(t=null==P?void 0:P.annotations)?void 0:t.filter(e=>"highlight"===e.config.type))?n:[]})},[o,g,w,null==P?void 0:P.annotations,null==P?void 0:P.getDataPointId]),L=(0,M.useMemo)(()=>{if(!w)return 0;let e=w.key;return o.reduce((t,n)=>{var r;try{let i=fl(null!=(r=n[e])?r:0);return t+(null!=i?i:0)}catch(e){return t}},0)},[o,w]),O=(e=>{var t,n;let{valueProperty:r,labelProperty:i,numberFormat:o,totalValue:l,showPercentageLabels:a,shouldShowDataLabels:s,shouldShowCategoryLabels:u}=e,c=(0,B.A)(),d=null!=(t=null==r?void 0:r.dataType.type)?t:gP.Decimal,p=null!=(n=null==i?void 0:i.dataType.type)?n:gP.Text,g=(null==r?void 0:r.dataType.type)===gP.Currency?r.dataType.iso:void 0,f=(0,M.useCallback)(e=>{let t=zs({intl:c,value:e,formattingType:d,currency:g,numberFormat:o});return{plain:t,rich:t}},[c,d,g,o]);return{formatPieValue:f,formatPieLabel:(0,M.useCallback)(e=>{let t=zs({intl:c,value:e,formattingType:p,numberFormat:o});return{plain:t,rich:t}},[c,p,o]),formatDataLabel:(0,M.useCallback)((e,t)=>{let n=[];return u&&n.push(zs({intl:c,value:t,formattingType:p,numberFormat:o})),s&&n.push(a?fI({intl:c,value:e/l,numberFormat:o}):zs({intl:c,value:e,formattingType:d,currency:g,numberFormat:o})),2===n.length&&n.splice(1,0,"\xb7"),{plain:n.join(" "),rich:n.map((e,t)=>(0,h.jsx)("span",{children:String(e)},t))}},[u,s,c,p,o,a,l,d,g]),formatMetric:(0,M.useCallback)(e=>{let t=zs({intl:c,value:e,formattingType:d,currency:g,numberFormat:o});return{plain:t,rich:t}},[c,d,g,o]),formatSeriesLabel:(0,M.useCallback)(e=>{let t=zs({intl:c,value:e,formattingType:p,numberFormat:o});return{plain:t,rich:t}},[c,p,o]),formatLegendValue:(0,M.useCallback)(e=>{let t=fI({intl:c,value:("number"==typeof e?fl(e):0)/l,numberFormat:o});return{plain:t,rich:t}},[c,o,l])}})({valueProperty:w,labelProperty:g,numberFormat:m,totalValue:L,showPercentageLabels:C,shouldShowDataLabels:x,shouldShowCategoryLabels:b}),T=HL({pointAnnotationsAddonProps:P,annotationsAddonProps:r,isInteractive:p,isEditable:d,formatters:O,highlightStyle:c,shouldShowDataLabels:x,shouldShowCategoryLabels:b,disableTooltips:gG(e=>e.appearance.disableTooltips)}),{aestheticMappings:D,data:I}=S,{value:z}=D,E="left"===A||"center"===A&&"pie"===t,H=A?(0,h.jsx)(HP,{valueProperty:w,totalValue:L,formatter:O.formatMetric,align:A}):null;return(0,h.jsx)(I0,{vizType:t,data:I,aestheticMappings:D,vizPalette:k,textScale:v,font:l,plot:(0,h.jsx)(Dm,{vizType:t,value:z,plotEffect:y,backgroundColor:i}),centerContent:"center"!==A||E?null:H,formatDataLabel:O.formatDataLabel,formatSeriesLabel:O.formatSeriesLabel,rightLegend:"right"===f?(0,h.jsx)(zK,Object.assign({},S,{vizType:t,direction:"vertical",align:"start",justify:"center",formatSeriesLabel:O.formatSeriesLabel,formatLegendValue:O.formatLegendValue,shouldShowValues:!0})):null,legendPosition:f,shouldShowLabels:x||b,chartSummary:(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(Em,Object.assign({metricSize:u,stat:s,formatMetric:O.formatMetric,formatSeriesLabel:O.formatSeriesLabel,formatLegendValue:O.formatLegendValue,highlightStyle:c,backgroundColor:i,shouldShowTopLegend:"top"===f,vizType:t},S)),E?H:null]}),titleContent:j,footerContent:a,addons:[...n,...T],valueLabel:null==w?void 0:w.label,getDataPointId:e=>String(e.id)})},HL=e=>{var t;let{pointAnnotationsAddonProps:n,annotationsAddonProps:r,isInteractive:i,isEditable:o,formatters:l,highlightStyle:a,shouldShowDataLabels:s,shouldShowCategoryLabels:u,disableTooltips:c}=e,d=[],p=null!=(t=null==n?void 0:n.annotations)?t:[];return i&&!c&&d.push(PO(Object.assign(Object.assign({},l),{annotations:p,highlightStyle:a}))),n&&d.push(TU(Object.assign(Object.assign({},n),{tooltipOptions:Object.assign(Object.assign({},l),{highlightStyle:a,annotations:p}),isEditable:o}))),(s||u)&&d.push({id:"data-labels",render:()=>(0,h.jsx)(TW,{})}),r&&d.push(Tj(r)),d},HM=e=>{let{chartData:t,columns:n,numberFormat:r,titleContent:i,footerContent:o}=e,l=(e=>{let{numberFormat:t}=e,n=(0,B.A)();return e=>{let r=e.dataType.type,i=e.dataType.type===gP.Currency?e.dataType.iso:void 0;return{formattingType:r,currencyIso:i,formatTableValue(e){let o=zs({intl:n,value:e,formattingType:r,currency:i,numberFormat:t});return{plain:o,rich:o}}}}})({numberFormat:r});return(0,h.jsx)(zl,{titleContent:i,footerContent:o,columns:n.map((e,t)=>{let{formattingType:n,currencyIso:r,formatTableValue:i}=l(e);return{title:e.label||"Column ".concat(t+1),getCellValue:t=>{var n;return null!=(n=t[e.key])?n:null},formattingType:n,currencyIso:r,formatValue:i}}),data:t})},HO=e=>(null==e?void 0:e.trim())?e:"Goal",HT=p.I4.svg(sr()),HD=p.I4.rect(si(),uv("targetLineColor")),HI=p.I4.path(so(),uv("targetLineColor")),Hz=p.I4.text(sl(),sg,uv("grey100")),HE=p.I4.circle(sa(),uv("targetLineMarkerColor")),HH=e=>{let{vizType:t,xGoalValue:n,yGoalValue:r,formatXGoalValue:i,formatYGoalValue:o,customGoalLineLabel:l}=e,{xType:a,flipAxes:s}=PD(),u=yG(),c=HV({xGoalValue:n,yGoalValue:r,formatXGoalValue:i,formatYGoalValue:o,xType:a,customGoalLineLabel:l}),{width:d}=(0,M.useMemo)(()=>u((0,h.jsx)(Hz,{children:c})),[c,u]),{isVisible:p,labelContainerPosition:g,labelPosition:f,labelBackgroundDimensions:m,visualCuesContainerPosition:y,arrowDimensions:b,markerDimensions:x,gradientDimensions:C}=(e=>{let{xGoalValue:t,yGoalValue:n,labelWidth:r}=e,{getXAxisPosition:i,getYAxisPosition:o,isBandScale:l,flipAxes:a}=PD(),s=mu("textScale"),u=b3("plotWidth"),c=b3("plotHeight"),d=a?c:u,p=a?u:c,h=(0,M.useMemo)(()=>i(l?yC(t):t),[i,l,t]),g=(0,M.useMemo)(()=>o(n),[o,n]),f=-11.7*s-7-8;return{isVisible:null!==h&&h>=0&&h<=d&&null!==g&&g>=0&&g<=p,labelContainerPosition:{[a?"y":"x"]:Math.min(Math.max(null!=h?h:0,r/2+5-9),d-r/2-5+9),[a?"x":"y"]:g},labelPosition:{x:0,y:f},labelBackgroundDimensions:{x:-r/2-5,y:f-11.7*s/2-5,width:r+10,height:11.7*s+10},visualCuesContainerPosition:{[a?"y":"x"]:h,[a?"x":"y"]:g},arrowDimensions:{x:-94,y:f+8,width:133,height:6},markerDimensions:{cx:0,cy:0,r:4},gradientDimensions:{x:a?-(null!=g?g:0):-7,y:-7,width:a?Math.abs(null!=g?g:0)+7:14,height:a?14:Math.abs(p-(null!=g?g:0))+7,rx:7}}})({xGoalValue:n,yGoalValue:r,labelWidth:d}),v=window.btoa("goal-line-gradient-".concat((0,M.useId)())),j="goal-label-arrow-".concat((0,M.useId)());return p&&"combo"!==t?(0,h.jsxs)(HT,{width:"100%",height:"100%",children:[(0,h.jsxs)("defs",{children:[(0,h.jsxs)("linearGradient",{id:v,x1:"7",y1:"0",x2:"7",y2:"185",gradientUnits:"userSpaceOnUse",gradientTransform:s?"rotate(90 0.5 0.5)":"",children:[(0,h.jsx)("stop",{stopColor:"#7D738C",stopOpacity:"0.13"}),(0,h.jsx)("stop",{offset:s?"0.7":"0.4",stopColor:"#B0AABA",stopOpacity:"0.1"}),(0,h.jsx)("stop",{offset:s?"0.8":"0.65",stopColor:"#C6C2CD",stopOpacity:"0.08"}),(0,h.jsx)("stop",{offset:s?"0.9":"0.8",stopColor:"#D5D2DA",stopOpacity:"0.06"}),(0,h.jsx)("stop",{offset:"1",stopColor:"#E5E3E8",stopOpacity:"0"})]}),(0,h.jsx)("clipPath",{id:j,children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h113v6H0z"})})]}),(0,h.jsxs)(ed.P.g,{initial:!1,animate:Object.assign({opacity:+!!p},g),transition:fq,children:[(0,h.jsx)(HD,Object.assign({},m,{rx:6})),(0,h.jsx)(Hz,Object.assign({},f,{textAnchor:"middle",dominantBaseline:"central",children:c}))]}),(0,h.jsxs)(ed.P.g,{initial:!1,animate:Object.assign({opacity:+!!p},y),transition:fq,children:[(0,h.jsx)("svg",Object.assign({},b,{fill:"none",children:(0,h.jsx)("g",{clipPath:"url(#".concat(j,")"),children:(0,h.jsx)(HI,{d:"m88 0 5.13 5.117a1.25 1.25 0 0 0 1.767-.002L100 0H88Z"})})})),(0,h.jsx)(HE,Object.assign({},x)),(0,h.jsx)("rect",Object.assign({},C,{fill:"url(#".concat(v,")")}))]})]}):null},HV=e=>{let{xGoalValue:t,yGoalValue:n,formatXGoalValue:r=up,formatYGoalValue:i=up,xType:o,customGoalLineLabel:l}=e;return"".concat(HO(l),": ").concat(i(n).rich).concat(cA(o)?" by ".concat(r(t).rich):"")},HF=e=>{let{vizType:t,yGoalValue:n,formatYGoalValue:r=up,customGoalLineLabel:i}=e,{getYAxisPosition:o,getSecondaryYAxisPosition:l,hasSecondaryAxis:a}=PD(),s="combo"===t&&a?l:o,u=(0,M.useMemo)(()=>s(n),[s,n]),c=(0,M.useMemo)(()=>"".concat(HO(i),": ").concat(r(n).rich),[i,r,n]);return(0,h.jsx)(EA,{formattedLabel:c,yPosition:u})},HB={initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:fq},HR=e=>{var{vizType:t,xGoalValue:n,yGoalValue:r,customGoalLineLabel:i}=e,o=sJ(e,["vizType","xGoalValue","yGoalValue","customGoalLineLabel"]);let{xType:l}=PD();return(0,h.jsx)(eg.N,{children:y5(l,n)&&y3(r)?(0,h.jsx)(ed.P.g,Object.assign({},HB,{children:(0,h.jsx)(HH,Object.assign({vizType:t,xGoalValue:n,yGoalValue:r,customGoalLineLabel:i},o))}),"xy"):y3(r)?(0,h.jsx)(ed.P.g,Object.assign({},HB,{children:(0,h.jsx)(HF,Object.assign({vizType:t,yGoalValue:r,customGoalLineLabel:i},o))}),"y"):null})},HY=p.I4.svg(ss(),mt.trendLines),HG=(0,ee.A)().x(e=>{let[t]=e;return t}).y(e=>{let[,t]=e;return t}),HU=e=>{let{observations:t,trendType:n,isSecondaryYAxis:r,isDimmed:i,highlightStyle:o,backgroundColor:l,strokeWidth:a=2,flipAxes:s,plotEffect:u}=e,c=mh(),{neonFilter:d,renderDefs:p}=LN({blur:3}),{getColor:g}=bX(),{getNonResponsiveXPosition:f,getNonResponsiveYPosition:m,getNonResponsiveSecondaryYAxisPosition:y}=PD(),b=r?y:m,x=(0,M.useMemo)(()=>t.map(e=>{let t=[f(e),b(e)];return s&&t.reverse(),t}),[s,f,b,t]),C=(0,M.useMemo)(()=>HG(((e,t,n)=>{let r=[0,n];switch(e){case"linear":return(0,to.regressionLinear)().domain(r)(t);case"exponential":return(0,to.regressionExp)().domain(r)(t.filter(e=>{let[,t]=e;return t>0}));case"logarithmic":return(0,to.regressionLog)().domain([.01,n])(t.filter(e=>{let[t]=e;return t>0}));case"quadratic":return(0,to.regressionQuad)().domain(r)(t);case"polynomial":return(0,to.regressionPoly)().domain(r)(t);case"power":return(0,to.regressionPow)().domain([.01,n])(t.filter(e=>{let[t,n]=e;return t>0&&n>0}));case"loess":return(0,to.regressionLoess)()(t)}})(n,x,300)),[x,n]);if(!C)return null;let[v]=t;if(!v)return null;let j={d:C,stroke:bg({theme:c,color:g(v),isDimmed:i,highlightStyle:o,backgroundColor:l}),fill:"none",strokeDasharray:"".concat(4*a," ").concat(3*a),strokeLinecap:"butt",strokeLinejoin:"round",style:{pointerEvents:"none"},vectorEffect:"non-scaling-stroke"};return(0,h.jsxs)(h.Fragment,{children:["neon"===u&&p(),"neon"===u&&(0,h.jsx)("path",Object.assign({},j,{strokeWidth:2*a,filter:d})),(0,h.jsx)("path",Object.assign({},j,{strokeWidth:a}))]})},HW=e=>{let{type:t,highlightStyle:n,backgroundColor:r,group:i=[],comboPlotAxisCount:o,comboPlotType:l,plotEffect:a,lineThickness:s,yAxisProperties:u}=e,c=b3("plotWidth"),d=b3("plotHeight"),p=b3("plotOffsetX"),g=b3("plotOffsetY"),f=mu("isPlotMeasured"),{flipAxes:m,hasSecondaryAxis:y}=PD(),{visibleObservations:b}=L9(),{chartHasHighlight:x}=yE(),{partitionKeys:C,partitionsMap:v}=(0,M.useMemo)(()=>y_({observations:b,group:i}),[b,i]),{secondaryDomainKey:j}=y7({comboPlotType:l,yAxisProperties:u,comboPlotAxisCount:o,partitionKeys:C});return f?(0,h.jsx)(HY,{viewBox:"0 0 300 300",preserveAspectRatio:"none",width:c,height:d,style:{left:p,top:g,overflow:"hidden"},children:C.map(e=>{var i;let o=null!=(i=v.get(e))?i:[];return(0,h.jsx)(ed.P.g,{initial:{opacity:0},animate:{opacity:1},transition:fq,children:(0,h.jsx)(HU,{observations:o,trendType:t,isSecondaryYAxis:y&&e===j,isDimmed:x,flipAxes:m,highlightStyle:n,backgroundColor:r,strokeWidth:s,plotEffect:a})},e)})}):null},HN={hasGridLines:!0,shouldShowDataLabels:!0,shouldStartFromZero:!0,customYAxisStartFrom:null,customYAxisEndAt:null,useLogScale:!1,showPercentageLabels:!1,showStackTotals:!1,hideCrossAxis:!1,hideMainAxis:!1,sortBars:!1,legendPosition:"top",comboPlotAxisCount:"double"},HK="__ID__",HZ="__METRIC_NAME__",HX="__METRIC_VALUE__",H_="__HIGHLIGHT__",HQ="__HIGHLIGHT_GROUP__",HJ="__X_STACK_LOWER__",Hq="__X_STACK_UPPER__",H$="__Y_STACK_LOWER__",H1="__Y_STACK_UPPER__",H0="__Y_STACK_PERCENTAGE__",H2="#@graphy@#",H5=new RegExp("^\\d+".concat(H2)),H3=[HX,HK,H_,HQ,H1,HJ,Hq,H$,H0],H7=e=>"string"!=typeof e?e:yj(e.replace(H5,"")),H9=e=>{let{formattingType:t,intl:n,value:r,currency:i,numberFormat:o}=e;switch(t){case gP.Boolean:return fc({value:r});case gP.Currency:return fx({intl:n,value:r,currency:i,numberFormat:o});case gP.Date:return fj({intl:n,value:r});case gP.Datetime:return fv({intl:n,value:r});case gP.Year:return fF({intl:n,value:r});case gP.Quarter:return fz({value:r});case gP.MonthYear:return fD({intl:n,value:r});case gP.Month:return fT({intl:n,value:r});case gP.DayMonth:return fA({intl:n,value:r});case gP.WeeklyDateRange:return fH({intl:n,value:r});case gP.WeeklyDateRangeWithYear:return fV({intl:n,value:r});case gP.Decimal:return fw({intl:n,value:r,numberFormat:o});case gP.Duration:return fM({value:r});case gP.Integer:return fO({intl:n,value:r});case gP.Percentage:return fI({intl:n,value:r,numberFormat:o});case gP.Text:return fE({value:r})}},H4=e=>{let{formattingType:t,intl:n,value:r,tickValues:i,currency:o,cadence:l}=e;if(l)return H4(Object.assign(Object.assign({},e),{cadence:void 0,formattingType:((e,t)=>{let{cadence:n}=e,r=!cw(t);switch(n){case"daily":return gP.Date;case"monthly":return r?gP.MonthYear:gP.Month;case"quarterly":return gP.Quarter;case"weekly":return r?gP.WeeklyDateRangeWithYear:gP.WeeklyDateRange;case"yearly":return r?gP.Year:gP.Month;default:return t}})(l,t)}));switch(t){case gP.Boolean:return fd({value:r});case gP.Currency:return fy({intl:n,value:r,tickValues:i,currency:o});case gP.Date:case gP.Datetime:return fB({intl:n,value:r,cadence:l});case gP.Year:return fF({intl:n,value:r});case gP.Quarter:return fz({value:r});case gP.MonthYear:return fD({intl:n,value:r});case gP.Month:return fU({intl:n,value:r});case gP.DayMonth:case gP.WeeklyDateRange:case gP.WeeklyDateRangeWithYear:return fR({intl:n,value:r});case gP.Decimal:return fm({intl:n,value:r,tickValues:i});case gP.Duration:return fY({value:r});case gP.Integer:return fG({intl:n,value:r,tickValues:i});case gP.Percentage:return fW({intl:n,value:r,tickValues:i});case gP.Text:return fN({value:r})}},H6=e=>{let{yAxisProperties:t}=e;return[...new Set(t.map(e=>e.dataType.type))].length>=2||!t[0]?{formattingType:gP.Decimal}:{formattingType:t[0].dataType.type,currency:t[0].dataType.type===gP.Currency?t[0].dataType.iso:void 0}},H8=(e,t)=>e.map(e=>{var n;return null!=(n=e[t])?n:null}),Ve=e=>{var t,n,r;let{vizType:i,xAxisProperties:o,yAxisProperties:l,mappings:a,seriesConfig:s,enableLegacySingleBarColorMode:u}=e;if(![...uJ,...uq].includes(i)||1!==l.length||1!==o.length)return;let c=null==(n=null==(t=o[0])?void 0:t.dataType)?void 0:n.type,d=c&&!cA(c)&&!ck(c);if(!d)return;let p=!!s&&Object.values(s).filter(e=>!!(null==e?void 0:e.color)).length>1;d&&(!u||p)&&(a.color=null==(r=o[0])?void 0:r.key)},Vt=e=>{let{mappings:t}=e;return Object.assign(Object.assign({},t),{cluster:[t.x]})},Vn=e=>{let[t]=e;return t?{id:HK,x:t.key,y:HZ,yValue:HX,alpha:HX}:{id:HK,x:HZ,y:HX,yValue:HX}},Vr=e=>{let{addons:t=[],pointAnnotationsAddonProps:n,annotationsAddonProps:r,chartData:i,curveType:o,isEditable:l=!1,isInteractive:a=!0,reverseCrossAxisPosition:s,onTopAxisLabelChange:u,onBottomAxisLabelChange:c,onRightAxisLabelChange:d,onLeftAxisLabelChange:p,trendType:g,xGoalValue:f,yGoalValue:m,customGoalLineLabel:y,vizPalette:b,fillTypeRange:x,lineTypeRange:C,vizType:v,xAxisProperties:j,yAxisProperties:A,sizeProperty:w,headlineMetric:k,headlineMetricComparisonValue:P,headlineMetricSize:L,averageLineSeriesKey:O,locale:T,plotEffect:D,highlightStyle:I,backgroundColor:z,lineThickness:E,pointSize:H,textScale:F,font:R,numberFormat:Y,treatEmptyValues:G,titleContent:U,footerContent:W,hasGridLines:N,shouldStartFromZero:K,showPoints:X,comboPlotType:_,comboPlotAxisCount:Q,customYAxisEndAt:J,customYAxisStartFrom:q,hideCrossAxis:$,hideMainAxis:ee,legendPosition:et,showPercentageLabels:en,showStackTotals:er,sortBars:ei,useLogScale:eo,shouldShowDataLabels:el,flipAxes:ea,topAxisLabel:es,rightAxisLabel:eu,bottomAxisLabel:ec,leftAxisLabel:ed,labelProperty:ep}=e,eh=Object.assign(Object.assign({},HN),{hasGridLines:N,shouldStartFromZero:K,comboPlotAxisCount:Q,customYAxisEndAt:J,customYAxisStartFrom:q,hideCrossAxis:$,hideMainAxis:ee,legendPosition:et,showPercentageLabels:en,showStackTotals:er,sortBars:ei,useLogScale:eo,shouldShowDataLabels:el}),eg=gG(e=>e.appearance.seriesConfig),{topAxisLabel:ef,bottomAxisLabel:em,leftAxisLabel:ey,rightAxisLabel:eb}=(e=>{let{vizType:t,xAxisProperties:n,yAxisProperties:r,customTopAxisLabel:i=null,customBottomAxisLabel:o=null,customLeftAxisLabel:l=null,customRightAxisLabel:a=null}=e;return{leftAxisLabel:(0,M.useMemo)(()=>{var e,n;return null!==l?l:"combo"!==t||r.length<2?"":null!=(n=null==(e=r[r.length-1])?void 0:e.label)?n:""},[l,t,r]),rightAxisLabel:(0,M.useMemo)(()=>{var e,n;return null!==a?a:("funnel"===t||r.length<=1||"combo"===t&&r.length<=2)&&null!=(n=null==(e=r[0])?void 0:e.label)?n:""},[a,t,r]),bottomAxisLabel:(0,M.useMemo)(()=>{var e,t;return null!==o?o:null!=(t=null==(e=n[0])?void 0:e.label)?t:""},[o,n]),topAxisLabel:(0,M.useMemo)(()=>{var e,t;return null!==i?i:null!=(t=null==(e=n[0])?void 0:e.label)?t:""},[i,n])}})({vizType:v,xAxisProperties:j,yAxisProperties:A,customTopAxisLabel:es,customBottomAxisLabel:ec,customLeftAxisLabel:ed,customRightAxisLabel:eu}),ex="funnel"===v||[...uJ,...uq].includes(v)&&(null==eh?void 0:eh.sortBars),{aestheticMappings:eC,data:ev}=(0,M.useMemo)(()=>{var e,t,r;return(e=>{var t,n,{chartData:r,vizType:i,xAxisProperties:o,yAxisProperties:l,sizeProperty:a,labelProperty:s,shouldSortBars:u,highlightAnnotations:c,treatEmptyValues:d,seriesConfig:p,enableLegacySingleBarColorMode:h}=e,g=sJ(e,["chartData","vizType","xAxisProperties","yAxisProperties","sizeProperty","labelProperty","shouldSortBars","highlightAnnotations","treatEmptyValues","seriesConfig","enableLegacySingleBarColorMode"]);let f=(e=>{let{data:t,idColumns:n,measureColumns:r,key:i="Key",value:o="Value",observationId:l="Id",treatEmptyValues:a,yStackType:s="total"}=e,u=0;return t.flatMap((e,t)=>{if(null===(n[0]?e[n[0]]:null))return[];let c=Object.entries(e).filter(e=>{let[t]=e;return r.includes(t)});"fill"===a?c=c.filter(e=>{let[,t]=e;return null!=t}):"zero"===a&&(c=c.map(e=>{let[t,n]=e;return[t,null!=n?n:0]}));let d=(0,S.A)(e,n),p=c.reduce((e,t)=>{let[,n]=t;return"number"==typeof n?e+n:e},0),h=u,g=h+p;return u=g,c.map(e=>{let[n,r]=e,a=(e=>{let{measureColumn:t,measureEntries:n,yStackType:r,stackTotal:i}=e,o=0,l=0;for(let[e,r]of n){if("number"!=typeof r)return{lower:0,upper:0,percentage:0};if(o=l,l+=r,t===e)break;o=l}return{lower:"percentage"===r?o/i:o,upper:"percentage"===r?l/i:l,percentage:(l-o)/i}})({measureColumn:n,measureEntries:c,yStackType:s,stackTotal:p});return Object.assign(Object.assign({},d),{[l]:dT({rowIndex:t,propertyKey:n}),[i]:n,[o]:r,[HJ]:h,[Hq]:g,[H$]:a.lower,[H1]:a.upper,[H0]:a.percentage})})})})({data:r,idColumns:[...o.map(e=>{let{key:t}=e;return t}),null!=(t=null==a?void 0:a.key)?t:"",null!=(n=null==s?void 0:s.key)?n:""].filter(Boolean),measureColumns:l.map(e=>{let{key:t}=e;return t}),key:HZ,value:HX,observationId:HK,treatEmptyValues:d,yStackType:["barStackedFill","columnStackedFill","mekko"].includes(i)?"percentage":"total"}),m=(e=>{var t;let{vizType:n,reshapedData:r,yAxisProperties:i,xAxisProperties:o,sizeProperty:l,labelProperty:a,getDataPointId:s,highlightAnnotations:u}=e,{formattingType:c}=H6({yAxisProperties:i}),d=((e,t)=>{let[n]=t;if(!n||!cv(n.dataType.type))return e;let r={};return e.map(e=>{var t;let n="";for(let[t,r]of Object.entries(e))H3.includes(t)||(n="".concat(n).concat(yC(r)));return n in r?(r[n]=(null!=(t=r[n])?t:0)+1,Object.entries(e).reduce((e,t)=>{let i,[o,l]=t;return o===HZ||H3.includes(o)?Object.assign(Object.assign({},e),{[o]:l}):Object.assign(Object.assign({},e),{[o]:(i=r[n],"".concat(i).concat(H2).concat(yC(l)))})},{})):(r[n]=0,e)})})(r,o),p=Hv(),h="waterfall"===n&&d.length>0&&(null==(t=i[0])?void 0:t.key)!==PK;p.add({variableKey:HK,values:[...H8(d,HK),...h?[dO]:[]],type:gP.Text}),p.add({variableKey:HZ,values:H8(d,HZ),type:gP.Text}),p.add({variableKey:HX,values:H8(d,HX),type:c}),p.add({variableKey:H$,values:H8(d,H$),type:gP.Decimal}),p.add({variableKey:H1,values:H8(d,H1),type:gP.Decimal}),p.add({variableKey:H0,values:H8(d,H0),type:gP.Decimal}),p.add({variableKey:HJ,values:H8(d,HJ),type:gP.Decimal}),p.add({variableKey:Hq,values:H8(d,Hq),type:gP.Decimal});let g=[l,a,...o],f=new Set;for(let e of g)e&&!f.has(e.key)&&(f.add(e.key),p.add({variableKey:e.key,values:H8(d,e.key),type:e.dataType.type}));return(e=>{let{dataFrame:t,reshapedData:n,highlightAnnotations:r,getDataPointId:i,xAxisProperty:o,isWaterfallSupported:l}=e,a=new Map,s=r.filter(e=>"x-value"===e.config.highlight);for(let e of n){if(!o)continue;let t=e[o.key];null!=t&&(a.has(t)||a.set(t,!1),s.some(t=>HK in e&&i(t)===e[HK])&&a.set(t,!0))}let u=r.some(e=>e.propertyKey===dO);t.add({variableKey:H_,values:[...n.map(e=>{var t;if(!o)return null;let n=r.filter(e=>"data-point"===e.config.highlight).some(t=>HK in e&&i(t)===e[HK]),l=e[o.key],s=null!=(t=void 0!==l&&a.get(l))&&t;return n||s}),...l?[u]:[]],type:gP.Boolean}),t.add({variableKey:HQ,values:[...n.map(e=>r.filter(e=>"series"===e.config.highlight).some(t=>HK in e&&i(t)===e[HK])),...l?[!1]:[]],type:gP.Boolean})})({dataFrame:p,reshapedData:d,highlightAnnotations:u,getDataPointId:s,xAxisProperty:o[0],isWaterfallSupported:h}),p})(Object.assign({vizType:i,reshapedData:f,labelProperty:s,xAxisProperties:o,yAxisProperties:l,sizeProperty:a,highlightAnnotations:c},g)),y=(e=>{var t;let{xAxisProperties:n,yAxisProperties:r,sizeProperty:i,labelProperty:o,vizType:l,highlightAnnotations:a,seriesConfig:s,enableLegacySingleBarColorMode:u}=e;if("heatmap"===l)return Vn(n);let[c]=n,d="areaStacked"===l,p={id:HK,x:null!=(t=null==c?void 0:c.key)?t:HX,y:d?H1:HX,size:null==i?void 0:i.key,yValue:HX,group:[{variableKey:HZ}],label:null==o?void 0:o.key,color:HZ,fillType:HZ,lineType:HZ,highlight:H_,highlightGroup:HQ,xStackLower:HJ,xStackUpper:Hq,yStackLower:H$,yStackUpper:H1,yStackPercentage:H0};return"combo"===l?Vt({mappings:p}):(Ve({vizType:l,xAxisProperties:n,yAxisProperties:r,mappings:p,seriesConfig:s,enableLegacySingleBarColorMode:u}),p)})({xAxisProperties:o,yAxisProperties:l,sizeProperty:a,labelProperty:s,vizType:i,highlightAnnotations:c,seriesConfig:p}),b=[...uJ,...uq,"line","areaStacked","combo"].includes(i);return(cA(m.getType(y.x))||ck(m.getType(y.x)))&&b&&m.sortBy(y.x,Hy),u&&m.sortBy(HX,Hb),{data:m,aestheticMappings:y}})({chartData:i,vizType:v,yAxisProperties:A,xAxisProperties:j,sizeProperty:w,labelProperty:ep,shouldSortBars:ex,getDataPointId:null!=(e=null==n?void 0:n.getDataPointId)?e:()=>"",highlightAnnotations:null!=(r=null==(t=null==n?void 0:n.annotations)?void 0:t.filter(e=>"highlight"===e.config.type))?r:[],treatEmptyValues:G,seriesConfig:eg,enableLegacySingleBarColorMode:!0})},[null==n?void 0:n.getDataPointId,null==n?void 0:n.annotations,i,v,A,j,w,ep,ex,G,eg]),{x:ej}=eC,eA=ev.getType(ej),ew=Vp(eA,f,T),ek=(e=>{let{xAxisProperties:[t,n],yAxisProperties:r,sizeProperty:i,labelProperty:o,vizType:l,numberFormat:a,comboPlotAxisCount:s}=e,u=(0,Z.s9)(),c=(0,B.A)(),d="combo"===l&&r.length>=2&&"double"===s,p=(0,M.useCallback)(e=>{let t,n=r.find(t=>{let{key:n}=t;return n===e});if(n){let e=n.label||n.getDefaultLabel(u);return{rich:e,plain:e}}let i=H7(e);if((t=i instanceof Date?gP.Date:"number"==typeof i?gP.Decimal:"boolean"==typeof i?gP.Boolean:gP.Text)===gP.Text){let e=fE({value:i});return{rich:e,plain:e}}let o=H4({intl:c,value:i,formattingType:t});return{rich:o,plain:o}},[c,r,u]),h=(0,M.useCallback)((e,n,r,i)=>{if(!t)return p(e);let o=t.dataType,l=H4({intl:c,value:cv(o.type)?H7(e):e,tickValues:n,formattingType:o.type,currency:o.type===gP.Currency?o.iso:void 0,cadence:i});return{plain:l,rich:l}},[t,p,c]),g=(0,M.useCallback)((e,t)=>{if("heatmap"===l)return p(e);let n=H4(Object.assign({intl:c,value:e,tickValues:t},H6({yAxisProperties:r.slice(-1)})));return{plain:n,rich:n}},[p,c,l,r]),f=(0,M.useCallback)((e,t)=>{if("heatmap"===l)return p(e);let n=["barStackedFill","columnStackedFill","mekko"].includes(l)?fW({intl:c,value:e,tickValues:t}):H4(Object.assign({intl:c,value:e,tickValues:t},H6({yAxisProperties:d?r.slice(0,-1):r})));return{plain:n,rich:n}},[p,c,d,l,r]),m=(0,M.useCallback)(e=>{if(!t)return p(e);let n=t.dataType,r=zs({intl:c,value:cv(n.type)?H7(e):e,formattingType:n.type,currency:n.type===gP.Currency?n.iso:void 0,numberFormat:a});return{plain:r,rich:r}},[t,p,c,a]),y=(0,M.useCallback)((e,t)=>{var n;if("heatmap"===l)return p(e);if(d){let i=zs(Object.assign({intl:c,numberFormat:a,value:e},H6({yAxisProperties:yP(t)&&(null==(n=r[r.length-1])?void 0:n.key)===t.groupValues[0]?r.slice(-1):r.slice(0,-1)})));return{plain:i,rich:i}}let i=zs(Object.assign(Object.assign({intl:c,value:e},H6({yAxisProperties:r})),{numberFormat:a}));return{plain:i,rich:i}},[p,c,d,l,r,a]),b=(0,M.useCallback)(e=>{if(!n)return p(e);let t=n.dataType,r=zs({intl:c,value:e,formattingType:t.type,currency:t.type===gP.Currency?t.iso:void 0,numberFormat:a});return{plain:r,rich:r}},[p,c,n,a]),x=(0,M.useCallback)((e,t)=>{if(!o)return b(e,t);let n=H9({intl:c,value:e,numberFormat:a,formattingType:o.dataType.type});return{plain:n,rich:n}},[b,c,o,a]),C=(0,M.useCallback)(e=>{let t=zs(Object.assign({intl:c,value:e,numberFormat:a},H6({yAxisProperties:r})));return{plain:t,rich:t}},[c,r,a]),v=(0,M.useCallback)(e=>{let t=fE({value:e});return{plain:t,rich:t}},[]),j=(0,M.useCallback)(e=>{var t;let n=r.at(d?-1:0),i=zs({intl:c,value:e,formattingType:null!=(t=null==n?void 0:n.dataType.type)?t:gP.Decimal,currency:(null==n?void 0:n.dataType.type)===gP.Currency?n.dataType.iso:void 0,numberFormat:a});return{plain:i,rich:i}},[c,d,r,a]),A=(0,M.useCallback)(e=>{let t=zs(Object.assign({intl:c,value:e,numberFormat:a},H6({yAxisProperties:r})));return{plain:t,rich:t}},[c,r,a]),w=(0,M.useCallback)((e,t)=>{var n;if(d){let i=zs(Object.assign({intl:c,value:e,numberFormat:a},H6({yAxisProperties:yP(t)&&(null==(n=r[r.length-1])?void 0:n.key)===t.groupValues[0]?r.slice(-1):r.slice(0,-1)})));return{plain:i,rich:i}}let i=zs(Object.assign({intl:c,numberFormat:a,value:e},H6({yAxisProperties:r})));return yS(t)&&"positive"===t.waterfallType?{plain:"+".concat(i),rich:"+".concat(i)}:{plain:i,rich:i}},[c,d,r,a]),k=(0,M.useCallback)(e=>{if(d){let t=zs(Object.assign({intl:c,value:e,numberFormat:a},H6({yAxisProperties:r.slice(0,-1)})));return{plain:t,rich:t}}let t=zs(Object.assign({intl:c,numberFormat:a,value:e},H6({yAxisProperties:r})));return{plain:t,rich:t}},[c,d,r,a]),P=(0,M.useCallback)((e,t,n)=>{var i;let o=r;d&&(o=(null==(i=r[r.length-1])?void 0:i.key)===t?r.slice(-1):r.slice(0,-1));let l=H6({yAxisProperties:o}),s=zs(Object.assign(Object.assign({intl:c,value:e,numberFormat:a},l),{formattingType:null!=n?n:l.formattingType}));return{plain:s,rich:s}},[c,d,r,a]),S=(0,M.useCallback)(e=>{var n;let r=null!=(n=null==t?void 0:t.dataType)?n:{type:gP.Text};if(Array.isArray(e))return((e,t,n,r)=>{let i;return{plain:i=[gP.WeeklyDateRange,gP.WeeklyDateRangeWithYear].includes(t.type)?"".concat(H4({intl:e,value:n,formattingType:t.type===gP.WeeklyDateRange?gP.DayMonth:gP.Date})," – ").concat(H4({intl:e,value:(0,V.f)(fa(r),6),formattingType:t.type===gP.WeeklyDateRange?gP.DayMonth:gP.Date})):"".concat(H4({intl:e,value:n,formattingType:t.type})," – ").concat(H4({intl:e,value:r,formattingType:t.type})),rich:i}})(c,r,e[0],e[1]);let i=H4({intl:c,value:cv(r.type)?H7(e):e,formattingType:r.type,currency:r.type===gP.Currency?r.iso:void 0});return{plain:i,rich:i}},[null==t?void 0:t.dataType,c]),L=(0,M.useCallback)(e=>{var i;let l=null!=(i=null!=o?o:n)?i:t;if(r.some(t=>{let{key:n}=t;return n===e}))return p(e);if(!l){let t=fE({value:H7(e)});return{plain:t,rich:t}}let{dataType:s}=l,u=H9({intl:c,value:cv(s.type)?H7(e):e,numberFormat:a,formattingType:s.type,currency:s.type===gP.Currency?s.iso:void 0});return{plain:u,rich:u}},[t,n,o,r,a,p,c]);return{formatBubbleSizeValue:(0,M.useCallback)(e=>{var t;if(!i)return{plain:"",rich:""};let n=H4({intl:c,value:e,formattingType:null!=(t=i.dataType.type)?t:gP.Decimal});return{plain:n,rich:n}},[c,i]),formatTopAxisTickLabel:h,formatBottomAxisTickLabel:h,formatLeftAxisTickLabel:g,formatRightAxisTickLabel:f,formatTooltipXValue:m,formatTooltipYValue:y,formatTooltipGroupValue:b,formatTooltipLabelValue:x,formatTooltipAlphaValue:C,formatXGoalValue:v,formatYGoalValue:j,formatAverageLineValue:A,formatDataLabel:w,formatStackTotalValue:k,formatMetric:P,formatTrend:(0,M.useCallback)(e=>fI({intl:c,value:e}),[c]),formatMetricLabel:S,formatSeriesLabel:L}})({yAxisProperties:A,xAxisProperties:j,sizeProperty:w,labelProperty:ep,vizType:v,numberFormat:Y,comboPlotAxisCount:eh.comboPlotAxisCount}),eP=Vo({bottomAxisLabel:em,chartFormatters:ek,isEditable:l,leftAxisLabel:ey,onBottomAxisLabelChange:c,onLeftAxisLabelChange:p,onRightAxisLabelChange:d,onTopAxisLabelChange:u,reverseCrossAxisPosition:s,rightAxisLabel:eb,topAxisLabel:ef}),eS=Vl({aestheticMappings:eC,backgroundColor:z,comboPlotAxisCount:Q,curveType:o,data:ev,highlightStyle:I,lineThickness:E,plotEffect:D,pointSize:H,showPoints:X,treatEmptyValues:G,vizType:v,yAxisProperties:A}),eL=g&&(0,h.jsx)(HW,{type:g,plotEffect:D,comboPlotAxisCount:eh.comboPlotAxisCount,comboPlotType:_,highlightStyle:I,backgroundColor:z,yAxisProperties:A}),eM=Va({vizType:v,xGoalValue:f,parsedXGoalValue:ew,yGoalValue:m,chartFormatters:ek,customGoalLineLabel:y}),eO=Vs({seriesKey:O,chartFormatters:ek,highlightStyle:I,aestheticMappings:eC,data:ev}),eT=Vu({pointAnnotationsAddonProps:n,annotationsAddonProps:r,flags:eh,chartFormatters:ek,vizType:v,isInteractive:a,xType:eA,isEditable:l,dataContainsPercentages:gG(e=>"dataContainsPercentages"in e.computedConfig&&e.computedConfig.dataContainsPercentages),numberFormat:Y,highlightStyle:I,disableTooltips:gG(e=>e.appearance.disableTooltips)}),eD=Vi({chartFormatters:ek,aestheticMappings:eC,data:ev,headlineMetric:k,headlineMetricComparisonValue:P,headlineMetricSize:L,highlightStyle:I,backgroundColor:z,vizType:v,comboPlotType:_});return(0,h.jsx)(IX,{vizType:v,addons:[...t,...eT],aestheticMappings:eC,averageLine:eO,axes:eP,chartSummary:eD,comboPlotAxisCount:eh.comboPlotAxisCount,curveType:null!=o?o:"linear",data:ev,fillTypeRange:x,font:R,footerContent:W,formatSeriesLabel:ek.formatSeriesLabel,getDataPointId:Vc,goalLines:eM,highlightStyle:I,lineTypeRange:C,options:Vd(eh,v),originLines:(0,h.jsx)(IB,{}),percentageValueStrategy:"funnel"===v?"divide-by-max-value":void 0,plot:eS,textScale:F,titleContent:U,trendline:eL,vizPalette:b,xGoalValue:ew,yGoalValue:m,flipAxes:ea})},Vi=e=>{let{chartFormatters:t,headlineMetric:n,headlineMetricComparisonValue:r,headlineMetricSize:i,highlightStyle:o,backgroundColor:l,vizType:a,aestheticMappings:s,data:u,comboPlotType:c}=e;return(0,h.jsx)(Em,{stat:n,comparisonValue:r,metricSize:i,formatTrend:t.formatTrend,formatMetric:t.formatMetric,formatMetricLabel:t.formatMetricLabel,formatSeriesLabel:t.formatSeriesLabel,formatBubbleSizeValue:t.formatBubbleSizeValue,highlightStyle:o,backgroundColor:l,vizType:a,comboPlotType:c,aestheticMappings:s,data:u})},Vo=e=>{let{isEditable:t,topAxisLabel:n,rightAxisLabel:r,bottomAxisLabel:i,leftAxisLabel:o,reverseCrossAxisPosition:l,onTopAxisLabelChange:a,onRightAxisLabelChange:s,onBottomAxisLabelChange:u,onLeftAxisLabelChange:c,chartFormatters:d}=e;return(0,h.jsx)(IV,{topLabel:n,formatTopLabel:d.formatTopAxisTickLabel,onTopLabelChange:t?a:void 0,rightLabel:r,formatRightLabel:d.formatRightAxisTickLabel,onRightLabelChange:t?s:void 0,bottomLabel:i,formatBottomLabel:d.formatBottomAxisTickLabel,onBottomLabelChange:t?u:void 0,leftLabel:o,formatLeftLabel:d.formatLeftAxisTickLabel,onLeftLabelChange:t?c:void 0,reverseCrossAxisPosition:l})},Vl=e=>{let{vizType:t,aestheticMappings:n,backgroundColor:r,curveType:i,data:o,highlightStyle:l,lineThickness:a,plotEffect:s,pointSize:u,showPoints:c,treatEmptyValues:d,comboPlotAxisCount:p,yAxisProperties:g}=e;switch(t){case"line":case"areaStacked":return(0,h.jsx)(T2,{vizType:t,x:n.x,y:n.y,group:n.group,curveType:i,plotEffect:s,highlightStyle:l,backgroundColor:r,lineThickness:a,treatEmptyValues:d,showPoints:c});case"scatter":return(0,h.jsx)(DU,{group:n.group,plotEffect:s,highlightStyle:l,backgroundColor:r,pointSize:u});case"bubble":return(0,h.jsx)(DN,{group:n.group,plotEffect:s,highlightStyle:l,backgroundColor:r});case"combo":return(0,h.jsx)(Dg,{data:o,x:n.x,y:n.y,group:n.group,curveType:i,plotEffect:s,highlightStyle:l,backgroundColor:r,lineThickness:a,yAxisProperties:g,comboPlotAxisCount:p,showPoints:c});case"waterfall":return(0,h.jsx)(DK,{x:n.x,plotEffect:s});case"heatmap":return(0,h.jsx)(Dj,{data:o,alpha:n.alpha,plotEffect:s});case"mekko":return(0,h.jsx)(DZ,{});default:return(0,h.jsx)(Ds,{vizType:t,x:n.x,y:n.y,group:n.group,shouldShowDropoff:"funnel"===t,plotEffect:s,backgroundColor:r})}},Va=e=>{let{vizType:t,xGoalValue:n,parsedXGoalValue:r,yGoalValue:i,chartFormatters:o,customGoalLineLabel:l}=e;return(0,h.jsx)(HR,{vizType:t,xGoalValue:r,yGoalValue:i,formatXGoalValue:()=>o.formatXGoalValue(null!=n?n:null),formatYGoalValue:o.formatYGoalValue,customGoalLineLabel:null!=l?l:void 0})},Vs=e=>{let{seriesKey:t,data:n,aestheticMappings:r,chartFormatters:i,highlightStyle:o}=e;return null===t?null:(0,h.jsx)(EP,{data:n,y:r.y,group:r.group,seriesKey:t,formatLabel:i.formatAverageLineValue,highlightStyle:o})},Vu=e=>{var t,n,r,i;let o,{pointAnnotationsAddonProps:l,annotationsAddonProps:a,flags:s,vizType:u,isInteractive:c,xType:d,chartFormatters:p,isEditable:g,dataContainsPercentages:f,numberFormat:m,highlightStyle:y,disableTooltips:b}=e,x=[],C=null!=(t=null==l?void 0:l.annotations)?t:[],v={annotations:C,formatGroupValue:p.formatTooltipGroupValue,formatLabelValue:p.formatTooltipLabelValue,formatXValue:p.formatTooltipXValue,formatYValue:p.formatTooltipYValue,formatAlphaValue:p.formatTooltipAlphaValue,shouldShowTrend:cA(d)||"funnel"===u,xType:d,highlightStyle:y};return l&&(x.push(TU(Object.assign(Object.assign({},l),{tooltipOptions:v,isEditable:g}))),x.push((i={isEditable:g,isDefaultVisible:null!=(n=s.shouldShowDataLabels)&&n,vizType:u,annotations:C,getDataPointId:l.getDataPointId,formatLabel:p.formatDataLabel,showPercentage:s.showPercentageLabels&&!f,numberFormat:m},{id:"data-labels",render:()=>(0,h.jsx)(Md,Object.assign({},i))}))),x.push((o={isDefaultVisible:null!=(r=s.showStackTotals)&&r,formatTotalValue:p.formatStackTotalValue},{id:"stack-totals",render:()=>(0,h.jsx)(Mj,Object.assign({},o))})),a&&x.push(Tj(a)),c&&!b&&x.push(PO(v)),x},Vc=e=>String(e[HK]),Vd=(e,t)=>({withHorizontalGridLines:"heatmap"!==t&&e.hasGridLines,withVerticalGridLines:"heatmap"!==t&&"waterfall"!==t&&"mekko"!==t&&e.hasGridLines,shouldStartFromZero:e.shouldStartFromZero,customYAxisStartFrom:e.customYAxisStartFrom,customYAxisEndAt:e.customYAxisEndAt,supportsRotatedTicks:!0,useLogScale:e.useLogScale,hideCrossAxis:e.hideCrossAxis,hideMainAxis:e.hideMainAxis,customLegendPosition:e.legendPosition,comboPlotAxisCount:e.comboPlotAxisCount}),Vp=(e,t,n)=>{var r;if(cA(e)&&"string"==typeof t)try{let e=null==(r=d_(t,n))?void 0:r.dateFormat;if(!e)return null;return Lc(t,e).toISOString()}catch(e){return null}return t},Vh=e=>{let{addons:t,pointAnnotationsAddonProps:n,annotationsAddonProps:r,chartData:i,config:o,isEditable:l,topAxisLabel:a,bottomAxisLabel:s,leftAxisLabel:u,rightAxisLabel:c,onTopAxisLabelChange:d,onBottomAxisLabelChange:p,onLeftAxisLabelChange:g,onRightAxisLabelChange:f,vizPalette:m,fillTypeRange:y,lineTypeRange:b,xGoalValue:x,yGoalValue:C,customGoalLineLabel:v,averageLineSeriesKey:j,shouldShowDataLabels:A,plotEffect:w,highlightStyle:k,backgroundColor:P,lineThickness:S,pointSize:L,textScale:M,font:O,numberFormat:T,titleContent:D,footerContent:I,treatEmptyValues:z,comboPlotAxisCount:E,customYAxisEndAt:H,customYAxisStartFrom:V,hasGridLines:F,hideCrossAxis:B,hideMainAxis:R,legendPosition:Y,shouldStartFromZero:G,showPercentageLabels:U,showPoints:W,showStackTotals:N,sortBars:K,trendType:Z,useLogScale:X,isInteractive:_,flipAxes:Q}=e;switch(o.type){case"bar":case"barStacked":case"barStackedFill":case"column":case"columnStacked":case"columnStackedFill":case"line":case"areaStacked":case"funnel":case"combo":case"scatter":case"bubble":case"mekko":case"heatmap":case"waterfall":return(0,h.jsx)(Vr,{addons:t,annotationsAddonProps:r,averageLineSeriesKey:j,backgroundColor:P,bottomAxisLabel:s,chartData:i,comboPlotType:o.comboPlotType,comboPlotAxisCount:E,curveType:["line","areaStacked","combo"].includes(o.type)?o.curveType:void 0,customGoalLineLabel:v,customYAxisEndAt:H,customYAxisStartFrom:V,fillTypeRange:y,font:O,footerContent:I,hasGridLines:F,headlineMetric:o.headlineMetric,headlineMetricComparisonValue:o.headlineMetricComparisonValue,headlineMetricSize:o.headlineMetricSize,hideCrossAxis:B,hideMainAxis:R,highlightStyle:k,isEditable:l,isInteractive:_,leftAxisLabel:u,legendPosition:Y,lineThickness:S,lineTypeRange:b,locale:o.locale,numberFormat:T,onBottomAxisLabelChange:p,onLeftAxisLabelChange:g,onRightAxisLabelChange:f,onTopAxisLabelChange:d,plotEffect:w,pointSize:L,reverseCrossAxisPosition:o.reverseCrossAxisPosition,rightAxisLabel:c,shouldStartFromZero:G,showPercentageLabels:U,showPoints:W,showStackTotals:N,sortBars:K,textScale:M,titleContent:D,topAxisLabel:a,treatEmptyValues:z,trendType:Z,useLogScale:X,vizPalette:m,vizType:o.type,pointAnnotationsAddonProps:n,shouldShowDataLabels:A,xAxisProperties:o.xAxisProperties,xGoalValue:x,yAxisProperties:o.yAxisProperties,yGoalValue:C,sizeProperty:"bubble"===o.type?o.sizeProperty:void 0,labelProperty:"scatter"===o.type||"bubble"===o.type?o.labelProperty:void 0,flipAxes:Q});case"pie":case"donut":{let e=o.labelProperty,a=o.valueProperty;return(0,h.jsx)(HS,{vizType:o.type,addons:t,annotationsAddonProps:r,backgroundColor:P,chartData:i,font:O,footerContent:I,headlineMetric:o.headlineMetric,headlineMetricSize:o.headlineMetricSize,highlightStyle:k,isEditable:l,isInteractive:_,labelProperty:e,legendPosition:Y,numberFormat:T,plotEffect:w,shouldShowCategoryLabels:o.showCategoryLabels,shouldShowDataLabels:A,showPercentageLabels:o.showPercentageLabels,textScale:M,titleContent:D,totalPosition:o.pieTotalPosition,valueProperty:a,vizPalette:m,pointAnnotationsAddonProps:n})}case"table":return(0,h.jsx)(HM,{chartData:i,columns:o.columns,footerContent:I,numberFormat:T,titleContent:D})}},Vg=(0,M.forwardRef)((e,t)=>{var n;let{appearanceVariant:r,sizing:i,footerContent:o,isEditable:l=!0,hasBorder:a=!0,isExport:s,isInteractive:u=!0,onResize:c,renderTitle:d=e=>(0,h.jsx)(Hg,Object.assign({},e)),toolbar:p,zoom:g,disableAnimation:f=!1}=e,m=EM(),y=(0,M.useRef)(null),b=gW(),C=gG(e=>e.annotations),v=gG(e=>e.appearance.theme),j=gG(e=>e.appearance.palette),A=gG(e=>e.appearance.textScale),w=gG(e=>e.appearance.font),k=gG(e=>e.numberFormat),P=gG(e=>e.computedConfig.comboPlotAxisCount),S=gG(e=>a?e.appearance.borderStroke:0),L=gG(e=>e.backgroundColor),O=gG(e=>{var t;return null!=(t=e.computedConfig.lineThickness)?t:void 0}),T=gG(e=>{var t;return null!=(t=e.computedConfig.pointSize)?t:void 0}),D=gG(e=>e.titleDocument),I=gG(e=>e.chartData),z=gG(e=>e.computedConfig),E=gG(e=>e.vizPalette),H=gG(e=>e.fillTypes),V=gG(e=>e.lineTypes),F=gG(e=>e.theme),B=gG(e=>"average"===e.computedConfig.presetPowerUp?e.computedConfig.averageLineSeriesKey:null),R=gG(e=>e.appearance.disableAnimation),Y=(0,M.useMemo)(()=>uJ.includes(z.type),[z.type]),G=z.customPowerUp,U=g9(),W=gG(e=>U&&"goal"===G?e.computedConfig.xGoalValue:null),N=gG(e=>"goal"===G?e.computedConfig.yGoalValue:"custom"===G&&e.computedConfig.customLineLabel?e.computedConfig.customLineValue:null),K=gG(e=>"goal"===G?e.computedConfig.customGoalLineLabel:"custom"===G?e.computedConfig.customLineLabel:null),Z=gG(e=>"trendline"===e.computedConfig.presetPowerUp?e.computedConfig.trendLineType||"linear":void 0),X=gG(e=>{var t;return"trendline"===e.computedConfig.presetPowerUp?"fade-color":null!=(t=e.appearance.highlightStyle)?t:dl}),_=l?e=>{m(t=>({annotations:t.annotations.filter(t=>!uf(t)&&e.id!==t.id)}))}:void 0,Q=l?e=>{m(t=>({annotations:t.annotations.map(t=>t.id===e.id?Object.assign({},e):t)}))}:void 0,J=(e=>{let{isEditable:t,zoom:n,flipAxes:r}=e,i=gG(e=>e.annotations.filter(TA)),o=EM(),l=(0,x.A)(o,100),a=Hi(),s=(0,M.useCallback)((e,t,n,r)=>{o(i=>({annotations:[...i.annotations,{id:crypto.randomUUID(),config:{type:"text",dimensions:Object.assign(Object.assign({},((e,t,n,r)=>{let i=t,o=n,l=0;for(;;){if(l++>100)return{x:t,y:n};if(!e.some(e=>{if("text"!==e.config.type)return!1;let{x:t,y:n}=e.config.dimensions;return .01>Math.abs(t-i)&&.01>Math.abs(n-o)}))return{x:i,y:o};i+=.005,o+=.05,i+r>1&&(i=0),o>1&&(o=0)}})(i.annotations,e,t,n)),{width:n}),content:{type:"doc",content:[{type:"paragraph",content:r?[{type:"text",text:r}]:[]}]}}}]}))},[o]),u=(0,M.useCallback)((e,t,n,r)=>{o(i=>({annotations:[...i.annotations,{id:crypto.randomUUID(),config:{type:"arrow",start:{x:e,y:t},end:{x:n,y:r},attributes:{color:jk("arrowStroke"),thickness:"medium",startArrowheadStyle:"none",lineStyle:"solid",endArrowheadStyle:"line-arrow",stickerStyle:!1}}}]}))},[o]),c=(0,M.useCallback)((e,t)=>{o(n=>({annotations:[...n.annotations,{id:crypto.randomUUID(),config:{type:"difference-arrow",start:dD(e),end:dD(t),attributes:{type:"relative-difference",color:null,size:"small"}}}]}))},[o]),d=(0,M.useCallback)((e,t,n,r)=>{o(i=>({annotations:[...i.annotations,{id:crypto.randomUUID(),config:{type:"shape",shape:"rectangle",fillColor:jk("shapeFill"),fillOpacity:.25,strokeWidth:0,x:e,y:t,width:n,height:r,order:"below"}}]}))},[o]),p=(0,M.useCallback)((e,t)=>{o(n=>({annotations:n.annotations.map(n=>n.id===e&&"shape"===n.config.type?Object.assign(Object.assign({},n),{config:Object.assign(Object.assign({},n.config),t)}):n)}))},[o]),h=(0,M.useCallback)(e=>{let t=i.find(t=>t.id===e);t&&o(e=>{switch(t.config.type){case"text":return{annotations:[...e.annotations,Object.assign(Object.assign({},t),{id:crypto.randomUUID(),config:Object.assign(Object.assign({},t.config),{dimensions:Object.assign(Object.assign({},t.config.dimensions),{x:t.config.dimensions.x+.03,y:t.config.dimensions.y+.06})})})]};case"arrow":return{annotations:[...e.annotations,Object.assign(Object.assign({},t),{id:crypto.randomUUID(),config:Object.assign(Object.assign({},t.config),{start:{x:t.config.start.x+.03,y:t.config.start.y+.04},end:{x:t.config.end.x+.03,y:t.config.end.y+.04}})})]};case"shape":return{annotations:[...e.annotations,Object.assign(Object.assign({},t),{id:crypto.randomUUID(),config:Object.assign(Object.assign({},t.config),{x:t.config.x+.04,y:t.config.y+.04})})]};case"difference-arrow":return e}})},[i,o]),g=(0,M.useCallback)(e=>{o(t=>({annotations:t.annotations.filter(t=>t.id!==e)}))},[o]),f=(0,M.useCallback)((e,t,n,r,i)=>{l(o=>({annotations:o.annotations.map(o=>o.id===e&&"arrow"===o.config.type?Object.assign(Object.assign({},o),{config:Object.assign(Object.assign({},o.config),{start:{x:t,y:n},end:{x:r,y:i}})}):o)}))},[l]),m=e=>(t,n,r)=>{o(i=>({annotations:i.annotations.map(i=>i.id===t&&i.config.type===e?Object.assign(Object.assign({},i),{config:Object.assign(Object.assign({},i.config),{attributes:Object.assign(Object.assign({},i.config.attributes),{[n]:r})})}):i)}))},y=m("arrow"),b=m("difference-arrow"),C=(e,t)=>{l(n=>({annotations:n.annotations.map(n=>"text"!==n.config.type||n.id!==e?n:t(n))}))};return{annotations:i,onAddShape:d,onShapeAttributesUpdate:p,onAddTextAnnotation:s,onAddArrow:u,onAddDifferenceArrow:c,onDuplicate:h,onDelete:g,onArrowPointsUpdate:f,onArrowAttributeUpdate:y,onDragTextAnnotation:(e,t,n)=>{C(e,e=>Object.assign(Object.assign({},e),{config:Object.assign(Object.assign({},e.config),{dimensions:Object.assign(Object.assign({},e.config.dimensions),{x:t,y:n})})}))},onResizeTextAnnotation:(e,t,n,r)=>{C(e,e=>Object.assign(Object.assign({},e),{config:Object.assign(Object.assign({},e.config),{dimensions:Object.assign(Object.assign({},e.config.dimensions),{x:t,y:n,width:r})})}))},onTextEdit:(e,t)=>{C(e,e=>Object.assign(Object.assign({},e),{config:Object.assign(Object.assign({},e.config),{content:t})}))},onTextAttributeUpdate:(e,t)=>{C(e,e=>Object.assign(Object.assign({},e),{config:Object.assign(Object.assign({},e.config),t)}))},getConnectedDataPointIds:e=>({start:dT(e.config.start),end:dT(e.config.end)}),onDifferenceArrowConnect:(e,t,n)=>{try{o(r=>({annotations:r.annotations.map(r=>r.id===e&&"difference-arrow"===r.config.type?Object.assign(Object.assign({},r),{config:Object.assign(Object.assign({},r.config),{start:dD(t),end:dD(n)})}):r)}))}catch(e){}},onDifferenceArrowAttributeUpdate:b,isEditable:t,zoom:n,plotEffect:gG(e=>"neon"===e.appearance.theme?"neon":void 0),seriesColorOptions:a,flipAxes:r}})({isEditable:l,zoom:g,flipAxes:Y}),q=gG(e=>"neon"===e.appearance.theme?"neon":void 0),$=(0,M.useCallback)((e,t)=>Hr(y.current,e,t||F.values.textPrimary),[F.values.textPrimary]),{handleTopAxisLabelChange:ee,handleBottomAxisLabelChange:et,handleLeftAxisLabelChange:en,handleRightAxisLabelChange:er,topAxisLabel:ei,bottomAxisLabel:eo,leftAxisLabel:el,rightAxisLabel:ea}=(e=>{let t=EM(),n=n=>{if(e)return e=>{t(t=>({visualisationConfig:Object.assign(Object.assign({},t.visualisationConfig),{[n]:e})}))}};return{topAxisLabel:gG(e=>e.computedConfig.topAxisLabel),bottomAxisLabel:gG(e=>e.computedConfig.bottomAxisLabel),leftAxisLabel:gG(e=>e.computedConfig.leftAxisLabel),rightAxisLabel:gG(e=>e.computedConfig.rightAxisLabel),handleTopAxisLabelChange:n("topAxisLabel"),handleBottomAxisLabelChange:n("bottomAxisLabel"),handleLeftAxisLabelChange:n("leftAxisLabel"),handleRightAxisLabelChange:n("rightAxisLabel")}})(l),es=(()=>{let e=(()=>{let e=gG(e=>e.ref);return(0,M.useCallback)(t=>{var n;let r=null==(n=e.current.computedProperties.filter(e=>!ck(e.dataType.type)).find(e=>!1!==e.isHidden))?void 0:n.key;if(r){let n=e.current.data[t];return null==n?void 0:n[r]}},[e])})(),t=EM(),n=gG(e=>e.computedConfig.type),r=gG(e=>{var t;return null!=(t=e.appearance.highlightStyle)?t:dl}),i=gG(e=>e.annotations);return(0,M.useMemo)(()=>{var o;let l=e=>{t(t=>({annotations:((e,t)=>{let n=e.find(e=>!uf(e)&&ug(e)&&ug(t)&&e.propertyKey===t.propertyKey&&e.rowIndex===t.rowIndex);return n?e.map(e=>e===n?Object.assign(Object.assign({},e),t):e):[...e,t]})(t.annotations,e)}))},a=e=>{t(t=>({annotations:((e,t)=>{let n=e.filter(uf),r=dD(t.id);return n.filter(e=>{switch(e.config.highlight){case"data-point":return dT(e)!==t.id;case"x-value":return e.rowIndex!==r.rowIndex;case"series":return e.propertyKey!==r.propertyKey}})})(t.annotations,e)}))};return[(o={annotations:i,getDataPointId:dT,onAnnotate:l,onRemoveHighlight:a,highlightStyle:r,getRowCategoricalValue:e,stickers:{"thumbs-up":(0,h.jsx)(Tz,{sticker:"thumbs-up"}),"thumbs-down":(0,h.jsx)(Tz,{sticker:"thumbs-down"}),"clapping-hands":(0,h.jsx)(Tz,{sticker:"clapping-hands"}),"grinning-face":(0,h.jsx)(Tz,{sticker:"grinning-face"}),rocket:(0,h.jsx)(Tz,{sticker:"rocket"})}},{id:"annotations-menu",render:()=>(0,h.jsx)(k7,Object.assign({},o))}),MG({onHighlight:l,onRemoveHighlight:a,highlightStyle:r,getRowCategoricalValue:e,vizType:n})]},[r,e,i,n,t])})(),eu=dP(w),{defaultLegendPosition:ec}=PE();return(0,h.jsx)(mg,{theme:F,children:(0,h.jsx)(jM,{children:(0,h.jsx)(ef.x,{reducedMotion:f||R?"always":"user",children:(0,h.jsx)(xZ.Provider,{value:$,children:(0,h.jsx)(E9.Root,{ref:g4([y,t]),onResize:c,textScale:A,font:eu,appearanceVariant:r,borderStrokeWidth:S,isExport:s,borderStyles:b,backgroundColor:L,vizType:z.type,isEditable:l,appearanceTheme:v,appearancePalette:j,sizing:i,children:(0,h.jsx)(E9.Content,{toolbar:p,children:(0,h.jsx)(Ht,{isEditable:l,chartData:I,config:z,children:(0,h.jsx)(ey.Bc,{skipDelayDuration:0,children:(0,h.jsx)(Vh,{isInteractive:u,addons:l?es:[],annotationsAddonProps:J,averageLineSeriesKey:B,backgroundColor:L,showPoints:z.showPoints,bottomAxisLabel:null!=eo?eo:void 0,chartData:I,comboPlotAxisCount:P,config:z,customGoalLineLabel:K,customYAxisEndAt:z.customYAxisEndAt,customYAxisStartFrom:z.customYAxisStartFrom,fillTypeRange:H,font:eu,footerContent:null!=o?o:(0,h.jsx)(Hd,{isEditable:l}),hasGridLines:z.hasGridLines,hideCrossAxis:z.hideCrossAxis,hideMainAxis:z.hideMainAxis,highlightStyle:X,isEditable:l,leftAxisLabel:null!=el?el:void 0,legendPosition:null!=(n=z.legendPosition)?n:ec,lineThickness:O,lineTypeRange:V,numberFormat:k,onBottomAxisLabelChange:et,onLeftAxisLabelChange:en,onRightAxisLabelChange:er,onTopAxisLabelChange:ee,plotEffect:q,pointSize:T,rightAxisLabel:null!=ea?ea:void 0,shouldShowDataLabels:z.showDataLabels,shouldStartFromZero:z.shouldStartFromZero,showPercentageLabels:z.showPercentageLabels,showStackTotals:z.showStackTotals,sortBars:z.sortBars,textScale:A,titleContent:d({isEditable:l,titleDocument:D,onChange:e=>m({titleDocument:e})}),treatEmptyValues:z.treatEmptyValues,topAxisLabel:null!=ei?ei:void 0,trendType:Z,useLogScale:z.useLogScale,vizPalette:E,pointAnnotationsAddonProps:{isEditable:l,annotations:C,onUpdate:Q,onDelete:_,getDataPointId:dT,highlightStyle:X,flipAxes:Y},xGoalValue:W,yGoalValue:N,flipAxes:Y})})})})})})})})})});Vg.displayName="GraphInner";let Vf=(0,M.forwardRef)((e,t)=>{var{errorFallback:n,onError:r}=e,i=sJ(e,["errorFallback","onError"]);return(0,h.jsx)(Hm,{graphProps:i,onError:r,fallbackComponent:n,children:(0,h.jsx)(Vg,Object.assign({},i,{ref:t}))})});Vf.displayName="Graph";let Vm=e=>{switch(e){case"EN_GB":return"en-GB";case"EN_US":return"en-US"}},Vy=e=>{var t,n,r;let{config:{numberFormat:i={decimalPlaces:"auto",abbreviation:"auto"},annotations:o=[],customAppearanceConfig:l=Lj(),visualisationConfig:a=hi(),datasetConfig:s={isDataHorizontal:!1,properties:[]},data:u=[],titleDocument:c=S7,caption:d=S4,sourceLabel:p,sourceUrl:h,fontList:g,themeOverrides:f},theme:m=ge,customPalettes:y=[],brandKit:b,enableLegacySingleBarColorMode:x=!1}=e,C={type:a.type,data:Vb({datasetConfig:s,data:u})};C.options={isSmoothLine:"catmull-rom"===a.curveType||"linear"!==a.curveType&&void 0,lineThickness:null!=(t=a.lineThickness)?t:void 0,showPoints:a.showPoints,missingValues:Vx({visualisationConfig:a}),sortBars:a.sortBars,pointSize:null!=(n=a.pointSize)?n:void 0,comboType:a.comboPlotType,pieTotalPosition:VC({visualisationConfig:a})},C.axes={x:Vv({visualisationConfig:a}),y:Vj({visualisationConfig:a}),y2:VA({visualisationConfig:a}),hasDualYAxis:"double"===a.comboPlotAxisCount||"single"!==a.comboPlotAxisCount&&void 0},C.grid={showGridLines:a.hasGridLines},C.legend={position:null!=(r=a.legendPosition)?r:void 0},C.appearance=Object.assign(Object.assign(Object.assign(Object.assign({},Vw({customAppearanceConfig:l,customPalettes:y,vizType:a.type,colorScheme:m.colorScheme,brandKit:b})),{seriesStyles:Vk({customAppearanceConfig:l,customPalettes:y}),backgroundModifier:!0===l.shouldTintBackground?"tint":!1===l.shouldTintBackground?"none":void 0}),VP({customAppearanceConfig:l})),{textStyle:VS({customAppearanceConfig:l}),textScale:VL({customAppearanceConfig:l}),highlightStyle:l.highlightStyle,isLogoHidden:l.shouldHideLogo,numberFormat:i,showTooltips:void 0!==l.disableTooltips?!l.disableTooltips:void 0,animateTransitions:void 0!==l.disableAnimation?!l.disableAnimation:void 0,useSingleColorForBars:x}),C.themeOverrides=f,C.content=VM({titleDocument:c,caption:d,sourceLabel:p,sourceUrl:h,customAppearanceConfig:l}),C.headlineNumbers=VO({visualisationConfig:a}),C.dataLabels=VT({visualisationConfig:a}),C.annotations=VD({annotations:o}),C.referenceLines=Vz({visualisationConfig:a}),C._metadata={schemaVersion:"0.0.1"};let v=a.locale?Vm(a.locale):void 0;return{config:C,uiLocale:v,formattingLocale:v,fontList:g}},Vb=e=>{var t;let{datasetConfig:n,data:r}=e;return{columns:n.properties.map(e=>({key:e.key,label:e.label,_metadata:{isHidden:e.isHidden,aggregation:e.aggregation}})),rows:r,_metadata:{parsingLocale:n.dateFormat?Vm(n.dateFormat):void 0,isDataTransposed:n.isDataHorizontal,isAggregated:n.shouldAggregate,groupByTimeUnit:n.groupByTimeUnit,sortBy:n.sortBy?{columnKey:n.sortBy.key,direction:n.sortBy.direction}:void 0,rollingDateFilter:null!=(t=n.rollingDateFilter)?t:void 0}}},Vx=e=>{let{visualisationConfig:t}=e;return"empty"===t.treatEmptyValues?"gap":"zero"===t.treatEmptyValues?"zero":"fill"===t.treatEmptyValues?"connect":void 0},VC=e=>{var t;let{visualisationConfig:n}=e;return"left"===n.pieTotalPosition?"outside":null!=(t=n.pieTotalPosition)?t:void 0},Vv=e=>{var t,n,r,i;let{visualisationConfig:o}=e,l=uJ.includes(o.type),a="heatmap"===o.type;return{label:null!=(t=o[l?"rightAxisLabel":a?"topAxisLabel":"bottomAxisLabel"])?t:void 0,isHidden:null!=(n=l?o.hideCrossAxis:o.hideMainAxis)?n:void 0,isReversed:l?o.reverseCrossAxisPosition:void 0,scaleType:l?o.useLogScale?"logarithmic":!1===o.useLogScale?"linear":void 0:void 0,min:l?null!=(r=o.customYAxisStartFrom)?r:o.shouldStartFromZero?0:void 0:void 0,max:l&&null!=(i=o.customYAxisEndAt)?i:void 0,tickDisplayMode:o[l?"yAxisLabelsMode":"xAxisLabelsMode"]}},Vj=e=>{var t,n,r,i;let{visualisationConfig:o}=e,l=uJ.includes(o.type),a="heatmap"===o.type,s="combo"===o.type;return{label:null!=(t=o[l?"bottomAxisLabel":a||s&&!o.reverseCrossAxisPosition&&"single"!==o.comboPlotAxisCount?"leftAxisLabel":"rightAxisLabel"])?t:void 0,isHidden:null!=(n=l?o.hideMainAxis:o.hideCrossAxis)?n:void 0,isReversed:l?void 0:o.reverseCrossAxisPosition,scaleType:l?void 0:o.useLogScale?"logarithmic":!1===o.useLogScale?"linear":void 0,min:l?void 0:null!=(r=o.customYAxisStartFrom)?r:o.shouldStartFromZero?0:void 0,max:l?void 0:null!=(i=o.customYAxisEndAt)?i:void 0,tickDisplayMode:o[l?"xAxisLabelsMode":"yAxisLabelsMode"]}},VA=e=>{var t;let{visualisationConfig:n}=e;if("combo"===n.type&&"single"!==n.comboPlotAxisCount)return{label:null!=(t=n.reverseCrossAxisPosition?n.leftAxisLabel:n.rightAxisLabel)?t:void 0}},Vw=e=>{let{customAppearanceConfig:t,customPalettes:n,vizType:r,colorScheme:i,brandKit:o}=e;switch(t.theme){case"custom":return{};case"customPalette":{let e=n.find(e=>e.id===t.palette);return e?{paletteId:e.id}:(console.warn("Custom palette with id ".concat(t.palette," not found")),{})}case"brandKit":return{palette:{id:"brand-kit",name:"Brand kit",colors:gf.reduce((e,t,n)=>{let r=null==o?void 0:o[t];return r&&r.color?[...e,{id:t,hex:r.color,name:"Color ".concat(n+1)}]:e},[])}};case"graphy":case"pastel":case"mono":case"neon":{let e;switch(t.theme){case"graphy":e=ys(r);break;case"pastel":e=yu(r);break;case"mono":e=yl(t.palette,10,i);break;case"neon":e=ya(t.palette,10,r)}return{palette:{id:"preset:".concat(t.theme,":").concat(t.palette),name:t.theme.charAt(0).toUpperCase()+t.theme.slice(1),colors:e.map((e,t)=>({id:t.toString(),hex:e,name:"Color ".concat(t+1)}))}}}}},Vk=e=>{let{customAppearanceConfig:t,customPalettes:n}=e;if(!t.seriesConfig)return;let r=n.find(e=>e.id===("customPalette"===t.theme?t.palette:void 0));return Object.entries(t.seriesConfig).reduce((e,t)=>{var n,i;let[o,l]=t,a=null!=(i=null==(n=null==r?void 0:r.colors.find(e=>e.hex===l.color))?void 0:n.id)?i:void 0;return Object.assign(Object.assign({},e),{[o]:{paletteColorId:a,customColor:void 0===a?l.color:void 0,fillStyle:l.fillType,lineStyle:l.lineType}})},{})},VP=e=>{let{customAppearanceConfig:{borderType:t,borderColor:n,borderStroke:r,hasRoundedCorners:i}}=e;return{border:{style:"solid"===t?"tinted":t,width:r,color:n},hasRoundedCorners:i}},VS=e=>{let{customAppearanceConfig:t}=e;if(t.font)return dP(t.font)},VL=e=>{let{customAppearanceConfig:t}=e;if(t.textScale)return Number.parseFloat(t.textScale)},VM=e=>{var t;let{titleDocument:n,caption:r,sourceLabel:i,sourceUrl:o,customAppearanceConfig:l}=e,a=(null!=(t=null==n?void 0:n.content)?t:[]).filter(e=>void 0!==e),s=a[0],u=void 0!==s?[s]:void 0,c=a.length>1?a.slice(1):void 0;return{title:void 0!==u?Object.assign(Object.assign({},n),{content:u}):void 0,isTitleHidden:l.shouldHideTitle,subtitle:void 0!==c?Object.assign(Object.assign({},n),{content:c}):void 0,isSubtitleHidden:l.shouldHideSubtitle,caption:r,isCaptionHidden:l.shouldHideCaption,source:"string"==typeof i||"string"==typeof o?{label:null!=i?i:void 0,url:null!=o?o:void 0}:void 0,isSourceHidden:l.shouldHideSourceSection}},VO=e=>{let{visualisationConfig:t}=e;if(t.headlineMetric)return{show:t.headlineMetric,compareWith:"tail"===t.headlineMetricComparisonValue?"previous":"head"===t.headlineMetricComparisonValue?"first":void 0,size:t.headlineMetricSize}},VT=e=>{let{visualisationConfig:t}=e;return{showDataLabels:t.showDataLabels,dataLabelFormat:!0===t.showPercentageLabels?"percentage":!1===t.showPercentageLabels?"absolute":void 0,showStackTotals:t.showStackTotals,showCategoryLabels:t.showCategoryLabels}},VD=e=>{let{annotations:t}=e;return t.map(e=>{var t;let n=VI(e)?{rowIndex:e.rowIndex,columnKey:e.propertyKey,rowValue:e.rowValue}:void 0;switch(e.config.type){case"sticker":return Object.assign({id:e.id,type:"sticker",sticker:e.config.id},n);case"tooltip":return Object.assign({id:e.id,type:"tooltip",caption:null!=(t=e.config.caption)?t:S4},n);case"highlight":return Object.assign({id:e.id,type:"highlight",highlight:e.config.highlight},n);case"text":return{id:e.id,type:"text",content:e.config.content,x:e.config.dimensions.x,y:e.config.dimensions.y,width:e.config.dimensions.width,backgroundColor:e.config.backgroundColor,backgroundColorStyle:e.config.backgroundColorStyle};case"arrow":return{id:e.id,type:"arrow",startX:e.config.start.x,startY:e.config.start.y,endX:e.config.end.x,endY:e.config.end.y,color:e.config.attributes.color,thickness:e.config.attributes.thickness,startArrowheadStyle:e.config.attributes.startArrowheadStyle,lineStyle:e.config.attributes.lineStyle,endArrowheadStyle:e.config.attributes.endArrowheadStyle,hasStickerStyle:e.config.attributes.stickerStyle};case"difference-arrow":return{id:e.id,type:"difference-arrow",show:e.config.attributes.type,start:{rowIndex:e.config.start.rowIndex,columnKey:e.config.start.propertyKey,rowValue:e.config.start.rowValue},end:{rowIndex:e.config.end.rowIndex,columnKey:e.config.end.propertyKey,rowValue:e.config.end.rowValue},color:e.config.attributes.color,size:e.config.attributes.size,labelPosition:e.config.attributes.labelCrossPosition};case"shape":return{id:e.id,type:"shape",shape:"rectangle",layer:"below"===e.config.order?"belowPlot":"abovePlot",x:e.config.x,y:e.config.y,width:e.config.width,height:e.config.height,fillColor:e.config.fillColor,fillOpacity:e.config.fillOpacity,strokeWidth:e.config.strokeWidth}}})},VI=e=>"sticker"===e.config.type||"tooltip"===e.config.type||"highlight"===e.config.type,Vz=e=>{var t,n,r,i,o,l,a;let{visualisationConfig:s}=e;return{goalLine:"goal"===s.customPowerUp||"custom"===s.customPowerUp?{target:null!=(n=null!=(t=s.yGoalValue)?t:s.customLineValue)?n:void 0,marker:null!=(r=s.xGoalValue)?r:void 0,label:null!=(o=null!=(i=s.customGoalLineLabel)?i:s.customLineLabel)?o:void 0}:void 0,trendline:"trendline"===s.presetPowerUp?null!=(l=s.trendLineType)?l:"linear":void 0,averageLine:"average"===s.presetPowerUp?{columnKey:null!=(a=s.averageLineSeriesKey)?a:void 0}:void 0}}}}]); //# sourceMappingURL=8e04e354-1c8dfda6b09aa920.js.map